Browse Source

Cleaned up and updated

Andrew V. Samoilov 22 years ago
parent
commit
7bf38b1ea8
1 changed files with 14 additions and 12 deletions
  1. 14 12
      doc/mcedit.1.in

+ 14 - 12
doc/mcedit.1.in

@@ -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 default
+.B context 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 foreground
+.I string 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
-here instead of the system-wide startup file.
+The default system-wide syntax files for mcedit, used only if
+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
-from here instead of the system-wide startup file.
+User's own setup.  If this file is present then the setup is loaded
+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
-and saved.
+User's own directory where block commands are processed and saved and
+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