Re: Smarty Syntax Highlighting File?
- From: Keith Roberts <keith karsites net>
- To: mc gnome org
- Subject: Re: Smarty Syntax Highlighting File?
- Date: Fri, 5 Aug 2011 23:50:06 +0100 (BST)
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 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]
-----------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]