"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/html.lang" (12 May 2020, 1777 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 Description="HTML"
    3 
    4 Categories = {"markup"}
    5 
    6 Keywords={
    7   { Id=1,
    8     Regex=[[<[!?]?(?!\-\-)\/?[\w\:\-]+>?|[/?]?>]],
    9     Group=0,
   10   },
   11   { Id=2,
   12     Regex=[[([-\w\.\-\:]+)="]],
   13   },
   14 
   15 
   16   -- see http://stackoverflow.com/questions/1723182/a-regex-that-will-never-be-matched-by-anything
   17   -- workaround to fix RTF output: nested JS has more keyword definitions, add one here which is a NOP
   18   { Id=3,
   19     Regex=[[\A(?!x)x]],
   20   },
   21   { Id=4,
   22     Regex=[[\&\#?\w+;]],
   23   },
   24 }
   25 
   26 Strings={
   27   Delimiter=[["]],
   28   Escape=[[\A(?!x)x]]
   29   -- see http://stackoverflow.com/questions/1723182/a-regex-that-will-never-be-matched-by-anything
   30 }
   31 
   32 Comments={
   33   { Block=true,
   34     Nested=false,
   35     Delimiter= { [[<!\-\-]],[[\-\->]] }
   36   }
   37 }
   38 
   39 NestedSections = {
   40   { Lang="php", Delimiter= { [[<\?php]], [[\?>]] } },
   41   { Lang="jsp", Delimiter= { [[<\%[@!\=]?]], [[.*(%>).*]] } },
   42   { Lang="css", Delimiter= { [[<style>]], [[<\/style>]] } },
   43   { Lang="js", Delimiter= { [[<script>]], [[<\/script>]] } },
   44   { Lang="css", Delimiter= { [[<style\s+type\=[\'\"]text\/css[\'\"]>]], [[<\/style>]] } },
   45   { Lang="js", Delimiter= { [[<script\s+language\=\"[jJ]ava[sS]cript\"(?:\s+type\=\"text\/javascript\")?>]], [[<\/script>]] } },
   46   { Lang="js", Delimiter= { [[<script\s+language=[\"\'][jJ]ava[sS]cript[\"\'](?:\s+type=[\"\']text/javascript[\"\'])?[^>]*>]], [[<\/script>]] } },
   47   { Lang="js", Delimiter= { [[<script(?:\s+type=[\"\']text/javascript[\"\'])\s+language=[\"\'][jJ]ava[sS]cript[\"\']?[^>]*>]], [[<\/script>]] } },
   48   { Lang="js", Delimiter= { [[<script(?:\s+type=[\"\']text/javascript[\"\'])>]], [[<\/script>]] } },
   49   --{ Lang="python", Delimiter= { [[\{%]], [[%\}]] } },
   50   --{ Lang="python", Delimiter= { [[\{\{]], [[\}\}]] } },
   51 
   52   --{ Lang="php", Delimiter= { [[<\?\=]], [[\?>]] } },
   53 }
   54 
   55 IgnoreCase=true