Portál AbcLinuxu, 7. listopadu 2025 02:58
~/.mc/cedit/Syntax
===
If this file is missing, system-wide /usr/share/mc/syntax/Syntax
The file command has three arguments.
The first argument is a regular expression that is applied to the file name
to determine if the following section applies to the file.
The second argument is the description of the file type. It is used in cooledit;
future versions of mcedit may use it as well.
The third optional argument is a regular expression to match the first line
of text of the file. The rules in the following section apply if
either the file name or the first line of text matches.
soubor se syntaxi pro zvyrazneni
===
# default colors
define comment brown
context default
keyword whole if yellow
keyword whole else yellow
keyword whole for yellow
keyword whole while yellow
keyword whole do yellow
keyword whole switch yellow
keyword whole case yellow
keyword whole static yellow
keyword whole extern yellow
keyword { brightcyan
keyword } brightcyan
keyword ?*? green
# C comments
context /\* \*/ comment
# C preprocessor directives
context linestart # \n red
keyword \\\n brightred
# C string constants
context " " green
keyword %d brightgreen
keyword %s brightgreen
keyword %c brightgreen
keyword \\" brightgreen
- - -
context [exclusive] [whole|wholeright|wholeleft] [linestart] delim [linestart] delim [foreground] [background]
context default [foreground] [background]
wholechars [left|right] characters
keyword [whole|wholeright|wholeleft] [linestart] string foreground [background]
\t = tab(s)
\s = space(s)
\n = new-line
\\ = backslash
* = wildcard
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.