! NEdit Highlighting Patterns for diff output ! ! Version 2.0, tested with NEdit 5.4. ! ! http://volker.dnsalias.net/soft/nedit/ ! and perhaps: ! ftp://ftp.nedit.org/pub/contrib/highlighting/ ! ! Load this file 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. ! ! Copyright (C) by Volker Kuhlmann ! and Andy Piper ! Released under the same license as NEdit itself. ! ! ChangeLog: ! 2.0, 11 Jan 2004: Volker Kuhlmann , NEdit 5.4 ! - for NEdit 5.4, minor changes nedit.languageModes: \ Diff:.diff .patch:"^(---\\s.*$|\\+\\+\\+\\s.*$|\\*\\*\\*\\s.*$)":::::: nedit.highlightPatterns: \ Diff:1:0{\n\ File1:"^---\\s.*$":::Flag::\n\ File2:"^(\\+\\+\\+\\s|\\*\\*\\*\\s|\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*).*$":::DiffFile2::\n\ HunkLines:"^(@@\\s|!\\s|\\.).*(@@$|$)":::DiffHunk::D\n\ LinesOut:"^(-|d[0-9]*\\s[0-9]*|c[0-9]*).*$":::DiffOut::D\n\ LinesIn:"^(\\+|a[0-9]*\\s[0-9]*).*$":::Preprocessor1::D\n\ } nedit.styles: \ DiffFile2:blue:Bold\n\ DiffHunk:purple:Italic\n\ DiffOut:red:Plain