crayon-syntax-highlighter/langs/tex/tex.txt
2019-08-30 19:30:19 +02:00

15 lines
455 B
Plaintext

### TeX LANGUAGE ###
# http://blog.keyboardplaying.org/2012/06/08/syntax-highlighting-latex/
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
NAME TeX
VERSION 1.9.8
COMMENT (?<!\\)%.*?$
# Make math formulaes appear as Strings
MATH:STRING ((?<!\\)\$\$.*?(?<!\\)\$\$)|((?<!\\)\$.*?(?<!\\)\$)|((?<!\\)\\\[.*?(?<!\\)\\\])
STATEMENT (\\[\w]+)|(\\['`^"~=.$vuH][\w]?)
SYMBOL (?<!\\)(?default)