HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/highlight/langDefs/tex.lang
Description="TeX and LaTeX"

Keywords={
  { Id=1,
    Regex=[[\\\w+]],
  },
  { Id=2,
    List={"a4paper", "report", "ngerman", "dvips", "graphicx", "latin1", "inputenc", 
            "T1", "fontenc", "color", "alltt", "document", "tabbing", "tocdepth"},
  },
  { Id=3,
    Regex=[[\#\d+]],
  },
}

IgnoreCase=false

Comments={
  { Block=false,
    Delimiter= { [[(?<!\\)%.*$]] },
  },
  { Block=true,
    Nested=false,
    Delimiter= { [[\(\*]],[[\*\)]],}
  }
}

NestedSections = {
  { Lang="perl", Delimiter= { [[\\perl(?:re)?newcommand\{\\\w+\}\[.*\]\{]], [[\{]] } },
  { Lang="perl", Delimiter= { [[\\perl(?:re)?newenvironment\{\w+\}\[.*\]\{]], [[\{]] } },
  { Lang="inc_luatex", Delimiter= { [[\\directlua0?.*?\{]], [[(?<!\{)\}]] } },
  { Lang="r", Delimiter= { [[<<.*>>=]], [[@]] } },
}

Operators=[[ \{|\}|\[|\] ]]