Cleaned up and updated

This commit is contained in:
Andrew V. Samoilov 2003-03-04 10:34:28 +00:00
parent 6a5213ff6f
commit 7bf38b1ea8

View File

@ -138,6 +138,9 @@ supports syntax highlighting. This means that keywords and contexts
(like C comments, string constants, etc) are highlighted in different (like C comments, string constants, etc) are highlighted in different
colors. The following section explains the format of the file colors. The following section explains the format of the file
.BR ~/.mc/cedit/Syntax . .BR ~/.mc/cedit/Syntax .
If this file is missing, system-wide
.B @prefix@/share/mc/syntax/Syntax
is used.
The file The file
.B ~/.mc/cedit/Syntax .B ~/.mc/cedit/Syntax
is rescanned on opening of a any new editor file. The file contains is rescanned on opening of a any new editor file. The file contains
@ -182,6 +185,7 @@ file .\\*\\\\.c C\\sProgram\\sFile (#include|/\\\\\\*)
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_ wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_
# default colors # default colors
define comment brown
context default context default
keyword whole if yellow keyword whole if yellow
keyword whole else yellow keyword whole else yellow
@ -197,7 +201,7 @@ context default
keyword '*' green keyword '*' green
# C comments # C comments
context /\\* \\*/ brown context /\\* \\*/ comment
# C preprocessor directives # C preprocessor directives
context linestart # \\n red context linestart # \\n red
@ -225,8 +229,7 @@ Each context starts with a line of the form:
.PP .PP
The first context is an exception. It must start with the command The first context is an exception. It must start with the command
.PP .PP
.B context .B context default
.B default
.RI [ foreground ] .RI [ foreground ]
.RI [ background ] .RI [ background ]
.PP .PP
@ -266,8 +269,7 @@ Each rule is a line of the form:
.B keyword .B keyword
.RB [ whole | wholeright | wholeleft ] .RB [ whole | wholeright | wholeleft ]
.RB [ linestart ] .RB [ linestart ]
.I string .I string foreground
.I foreground
.RI [ background ] .RI [ background ]
.PP .PP
Context or keyword strings are interpreted, so that you can include tabs Context or keyword strings are interpreted, so that you can include tabs
@ -472,20 +474,20 @@ the user's own ~/.mc/ini file is missing.
Global settings for the Midnight Commander. Settings in this file Global settings for the Midnight Commander. Settings in this file
affect all users, whether they have ~/.mc/ini or not. affect all users, whether they have ~/.mc/ini or not.
.PP .PP
.I $HOME/.mc/ini .I @prefix@/share/mc/syntax/*
.IP .IP
User's own setup. If this file is present, the setup is loaded from The default system-wide syntax files for mcedit, used only if
here instead of the system-wide startup file. the corresponding user's own ~/.mc/cedit/ file is missing.
.PP .PP
.I $HOME/.mc/ini .I $HOME/.mc/ini
.IP .IP
User's own setup. If this file is present then the setup is loaded User's own setup. If this file is present then the setup is loaded
from here instead of the system-wide startup file. from here instead of the system-wide setup file.
.PP .PP
.I $HOME/.mc/cedit/ .I $HOME/.mc/cedit/
.IP .IP
User's own temporary directory where block commands are processed User's own directory where block commands are processed and saved and
and saved. user's own syntax files are located.
.SH LICENSE .SH LICENSE
This program is distributed under the terms of the GNU General Public This program is distributed under the terms of the GNU General Public
License as published by the Free Software Foundation. See the built-in License as published by the Free Software Foundation. See the built-in