diff options
author | Marius <mariausol@gmail.com> | 2010-07-04 15:32:09 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2010-07-04 15:32:09 +0300 |
commit | 85b7bc695629926641c7cb752fd478adfdf374f3 (patch) | |
tree | 80293f5aaa7b95a500a78392c39688d8ee7a32fc /context/data/texworks/configuration/syntax-patterns.txt | |
download | context-85b7bc695629926641c7cb752fd478adfdf374f3.tar.gz |
stable 2010-05-24 13:10
Diffstat (limited to 'context/data/texworks/configuration/syntax-patterns.txt')
-rw-r--r-- | context/data/texworks/configuration/syntax-patterns.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/context/data/texworks/configuration/syntax-patterns.txt b/context/data/texworks/configuration/syntax-patterns.txt new file mode 100644 index 000000000..687fae887 --- /dev/null +++ b/context/data/texworks/configuration/syntax-patterns.txt @@ -0,0 +1,42 @@ +# TeXworks: Patterns for syntax coloring + +# Each entry consists of three whitespace-separated fields: +# <color> <spell?> <regex> + +# <color> is a color name from the list defined in the SVG standard; +# see http://www.w3.org/TR/SVG/types.html#ColorKeywords + +# <spell> is a flag controlling whether this style is subject to spell-checking; +# "Y" or "y" for yes, "N" (or anything else, actually) for no. + +# <regex> is the regular expression to match. + +# Note that order of rules may be important if several rules could match at the same position; +# this is why the generic "control sequence" rule comes AFTER the specific \begin/\end one. + +[ConTeXt TeX] + +darkred N [\$\{\}] + +darkblue N [\<\>\"\'\[\]\=\#] +goldenrod N [\~\`\%\^\&\-\+\|] +darkgreen N \\(?:[\w\@\?\!]+|.) +darkgray N %.* + +[ConTeXt XML] + +# todo: attributes + +darkred N \<\?xml.*\?\> +darkblue N \<\!\-\-.*\-\-\> +darkblue N [\"\'] +goldenrod N \<\?.*\?\> +darkgreen N \<\/*[a-zA-Z\_\-]*\:*[a-zA-Z\_\-]+ +darkgreen N \/\> +darkgreen N \> +darkred N \&[a-zA-Z\_\-]+\; + +# other possibilities to be added.... +# [BibTeX] +# [Metapost] +# etc |