! Syntax Highlighting Patterns for SGML and HTML ! Version of 1999-11-18 ! ! This patterns was made for SGML but of course it works as well for HTML (and ! even better than the default pattern). ! ------------------------------------------------------------------------------ ! ! In NEdit Version 5.0.1 and beyond, load this pattern by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. ! ! In version 5.0, without -import, you must edit your .nedit file by hand and ! add the contents of each resource below to the corresponding list in your ! .nedit file. Be sure to separate new entries with \n, and continue resource ! strings by escaping all newlines within a resource value with \ (backslash), ! leaving only the last line of the resource value not ending in \. ! ! ------------------------------------------------------------------------------ ! Author: John Fieber ! Maintainer: Seak, Teng-Fong ! URL: http://www.nedit.org ! Date: 1999-11-18 nedit.highlightPatterns: \ SGML HTML:1:0{\n\ markup declaration:"\\"::Plain::\n\ mdo-mdc:"\\0":"\\0"::Storage Type:markup declaration:C\n\ markup declaration string:"""([^""]|\\n)*""|'([^']|\\n)*'":::String1:markup declaration:\n\ entity declaration:"([Ee][Nn][Tt][Ii][Tt][Yy])[ \\t\\n]+(%[ \\t\\n]+)?([a-zA-Z][-.a-zA-Z0-9]*|#[Dd][Ee][Ff][Aa][Uu][Ll][Tt])[ \\t\\n]+([CcSs][Dd][Aa][Tt][Aa]|[Pp][Ii]|[Ss][Tt][Aa][Rr][Tt][Tt][Aa][Gg]|[Ee][Nn][Dd][Tt][Aa][Gg]|[Mm][DdSs])?":::Preprocessor:markup declaration:\n\ ed name:"\\3":""::String2:entity declaration:C\n\ ed type:"\\4":""::Storage Type:entity declaration:C\n\ doctype declaration:"([Dd][Oo][Cc][Tt][Yy][Pp][Ee])[ \\t\\n]+([a-zA-Z][-.a-zA-Z0-9]*)":::Preprocessor:markup declaration:\n\ dt name:"\\2":""::String2:doctype declaration:C\n\ element declaration:"([Ee][Ll][Ee][Mm][Ee][Nn][Tt])[ \\t\\n]+([a-zA-Z][-.a-zA-Z0-9]*)":::Preprocessor:markup declaration:\n\ ed name:"\\2":""::String2:element declaration:C\n\ attribute declaration:"([Aa][Tt][Tt][Ll][Ii][Ss][Tt])[ \\t\\n]+([a-zA-Z][-.a-zA-Z0-9]*)":::Preprocessor:markup declaration:\n\ ad name:"\\2":""::String2:attribute declaration:C\n\ notation declaration:"([Nn][Oo][Tt][Aa][Tt][Ii][Oo][Nn])[ \\t\\n]+([a-zA-Z][-.a-zA-Z0-9]*)":::Preprocessor:markup declaration:\n\ nd name:"\\2":""::String2:notation declaration:C\n\ shortref declaration:"([Ss][Hh][Oo][Rr][Tt][Rr][Ee][Ff])[ \\t\\n]+([a-zA-Z][-.a-zA-Z0-9]*)":::Preprocessor:markup declaration:\n\ sd name:"\\2":""::String2:shortref declaration:C\n\ comment:"--":"--"::Comment:markup declaration:\n\ pi:"\\<\\?[^\\>]*\\??\\>":::Flag::\n\ stag:"(\\<)(\\([a-zA-Z][-._:a-zA-Z0-9]*\\))?[a-zA-Z][-._:a-zA-Z0-0]*[ \\t\\v\\n]*":"/?\\>"::Text Key1::\n\ stago-tagc:"\\1":"\\0"::Text Arg:stag:C\n\ etag:"(\\)":::Text Key1::\n\ etago-tagc:"\\1\\4":""::Text Arg:etag:C\n\ attribute:"([-a-zA-Z]+)[ \\t\\v\\n]*=[ \\t\\v\\n]*(""([^""]|\\n)*""|'([^']|\\n)*'|\\&([^;]|\\n)*;|[-.a-zA-Z0-9]+)":::Plain:stag:\n\ attribute name:"\\1":""::Text Arg2:attribute:C\n\ attribute value:"\\2":""::String:attribute:C\n\ general entity:"&(\\([a-zA-Z][-.a-zA-Z0-9]*\\))?[a-zA-Z][-.a-zA-Z0-9]*;?|&#[0-9]+;?|&#x[a-fA-F0-9]+;?":::Text Escape::\n\ parameter entity:"%(\\([a-zA-Z][-.a-zA-Z0-9]*\\))?[a-zA-Z][-.a-zA-Z0-9]*;?":::Text Escape::\n\ md parameter entity:"%(\\([a-zA-Z][-.a-zA-Z0-9]*\\))?[a-zA-Z][-.a-zA-Z0-9]*;?":::Text Escape:markup declaration:\n\ system-public id:"<[Ss][Yy][Ss][Tt][Ee][Mm]|[Pp][Uu][Bb][Ll][Ii][Cc]|[Cc][Dd][Aa][Tt][Aa]>":::Storage Type:markup declaration:\n\ } nedit.languageModes: SGML HTML:.sgml .sgm .html .htm:"\\<[Hh][Tt][Mm][Ll]\\>":::::