Re: Tcl syntax highlighting
- From: Pavel Roskin <proski gnu org>
- To: Francis Kwok <Francis Kwok Alcatel com>
- Cc: mc gnome org
- Subject: Re: Tcl syntax highlighting
- Date: Fri, 12 Jul 2002 12:33:56 -0400 (EDT)
Hi, Francis!
I believe you misspelled the address of the list, so I'm fixing it.
On 12 Jul 2002, Francis Kwok wrote:
How do I enable syntax highlighting? I looked all over the help and I
can't seem to find it!
Please give more details. What version are you using? Is it compiled
with s-lang or ncurses? "mc -V" will tell you that. Is the problem with
Tcl only or with other files? Maybe MC is running in black and white
mode?
To enable "Syntax Highlighting" in general, you should select in the
editor menu Options->General and check the checkbox.
To enable syntax highligting for the given file type, you should add a
rule to the Syntax file. For Tcl, the use is:
file ..\*\\.(tcl|TCL)$ Tcl\sProgram
include tcl.syntax
Syntax hightligthing won't work if:
1) MC is compiled with ncurses
2) MC is running in black and white mode
3) Syntax hightligthing is disabled in the editor menu
4) Current file doesn't match any rule in the Syntax file (it's
~/.cedit/Syntax for mc-4.5.55 and older, ~/.mc/cedit/Syntax for current
code).
--
Regards,
Pavel Roskin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]