Smarty Syntax Highlighting File?
Keith Roberts
keith at karsites.net
Fri Aug 5 22:50:06 UTC 2011
On Fri, 5 Aug 2011, Keith Roberts wrote:
*snip*
> So where is the location of the mystery default /root/.mc/cedit/Syntax
> file ??
OK - found it now.
The Syntax file is actually under:
[root at karsites ~]# rpm -ql mc
/etc/mc
/etc/mc/cedit.menu
/etc/mc/edit.indent.rc
/etc/mc/edit.spell.rc
/etc/mc/extfs
/etc/mc/extfs/extfs.ini
/etc/mc/extfs/sfs.ini
/etc/mc/mc.charsets
/etc/mc/mc.ext
/etc/mc/mc.lib
/etc/mc/mc.menu
/etc/mc/syntax
/etc/mc/syntax/Syntax
But for some reason the error message gives the wrong path!
I have added those two lines to the /etc/mc/syntax/Syntax
file:
file ..\*\\.(tpl|TPL)$ Smarty\sTemplate\sFile
include smarty.syntax
And I can now edit .php files AND Smarty .tpl files, both
with the syntax highlighting working OK.
Got there in the end - LOL.
Kind Regards,
Keith Roberts
-----------------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------
More information about the mc
mailing list