! Syntax Highlighting Patterns for LyX ! ! For NEdit 5.0 and above ! ! Contributed by Reuben Thomas (rrt@sc3d.org), just a small change to the ! LaTeX patterns ! ! (Note: the author also finds it useful to set wrap to "Continuous" in LaTeX ! and LyX modes) ! ! 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. ! nedit.highlightPatterns: \ LyX:1:0{\n\ Comment:"%":"$"::Text Comment::\n\ LyX Comment:"#":"$"::Text Comment::\n\ Parameter:"#[0-9]*":::Text Arg::\n\ Special Chars:"[{}&]":::Keyword::\n\ Escape Chars:"\\\\[$&%#_{}]":::Text Escape::\n\ Super Sub 1 Char:"(\\^|_)[^{]":::Text Arg2::\n\ Verbatim Begin End:"\\\\begin\\{verbatim\\*?}":"\\\\end\\{verbatim\\*?}"::Plain::\n\ Verbatim Color:"&":"&"::Keyword:Verbatim Begin End:C\n\ Verbatim 1:"\\\\verb\\*?`":"`"::Plain::\n\ Verbatim 1 Color:"&":"&"::Keyword:Verbatim 1:C\n\ Verbatim 2:"\\\\verb\\*?#":"#"::Plain::\n\ Verbatim 2 Color:"&":"&"::Keyword:Verbatim 2:C\n\ Verbatim 3 Color:"&":"&"::Keyword:Verbatim 3:C\n\ Verbatim 3:"\\\\verb\\*?/":"/"::Plain::\n\ Inline Math:"\\$":"\\$":"\\n\\n":LaTeX Math::\n\ Math Color:"&":"&"::Keyword:Inline Math:C\n\ Inline Math1:"\\\\\\(":"\\\\\\)"::LaTeX Math::\n\ Math1 Color:"&":"&"::Keyword:Inline Math1:C\n\ Math Escape Chars:"\\\\\\$":::Text Escape:Inline Math:\n\ No Arg Command:"\\\\(left|right)[\\[\\]{}()]":::Text Key::\n\ Command:"[_^]|[\\\\@](a'|a`|a=|[A-Za-z_]+\\*?|\\\\\\*|[-@_='`^""|\\[\\]*:!+<>/~.,\\\\ ])":"nevermatch":"[^{[(]":Text Key::\n\ Cmd Brace Args:"\\{":"}"::Text Arg2:Command:\n\ Brace Color:"&":"&"::Text Arg:Cmd Brace Args:C\n\ Cmd Paren Args:"\\(":"\\)":"$":Text Arg2:Command:\n\ Paren Color:"&":"&"::Text Arg:Cmd Paren Args:C\n\ Cmd Bracket Args:"\\[":"\\]":"$":Text Arg2:Command:\n\ Bracket Color:"&":"&"::Text Arg:Cmd Bracket Args:C\n\ Sub Command:"([_^]|([\\\\@]([A-Za-z]+\\*?|[^A-Za-z$&%#{}~\\\\ \\t])))":::Text Key1:Cmd Brace Args:\n\ Sub Brace:"\\{":"}"::Text Arg2:Cmd Brace Args:\n\ Sub Sub Brace:"\\{":"}"::Text Arg2:Sub Brace:\n\ Sub Sub Sub Brace:"\\{":"}"::Text Arg2:Sub Sub Brace:\n\ Sub Sub Sub Sub Brace:"\\{":"}"::Text Arg2:Sub Sub Sub Brace:\n\ Sub Paren:"\\(":"\\)":"$":Text Arg2:Cmd Paren Args:\n\ Sub Sub Paren:"\\(":"\\)":"$":Text Arg2:Sub Paren:\n\ Sub Sub Sub Paren:"\\(":"\\)":"$":Text Arg2:Sub Sub Paren:\n\ Sub Parameter:"#[0-9]*":::Text Arg:Cmd Brace Args:\n\ Sub Spec Chars:"[{}$&]":::Text Arg:Cmd Brace Args:\n\ Sub Esc Chars:"\\\\[$&%#_{}~^\\\\]":::Text Arg1:Cmd Brace Args:\n\ } nedit.languageModes: LyX:.lyx:"\\\\lyxformat":::::