! Syntax Highlighting Patterns for GNU Diffutils Context patch ! Originally contributed by Reinier Mostert (reinier.mostert@bigfoot.com) ! ! In NEdit Version 5.1x 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.1, 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 \. ! nedit.highlightPatterns: \ Context Diff:1:0{\n\ Patch Header:"^\\*\\*\\* \\l.*$|^--- \\l.*$":::Comment::\n\ Hunk Header:"^\\*\\*\\* \\d.* \\*\\*\\*\\*$|^--- \\d.* ----$":::Comment::\n\ Added Code:"^\\+ .*$":::AddedCode::\n\ Removed Code:"^- .*$":::RemovedCode::\n\ Changed Code:"^! .*$":::ChangedCode::\n\ Hunk Seperator:"^\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*$":::Preprocessor::\n\ } nedit.languageModes: Context Diff:.patch:"\\*\\*\\*.*$---.*$"::::: nedit.styles: \ AddedCode:darkcyan:Plain\n\ RemovedCode:yellow4:Plain\n\ ChangedCode:purple:Plain