/[general]/random/nedit/Diff-5.1.pats
ViewVC logotype

Contents of /random/nedit/Diff-5.1.pats

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue May 29 19:07:47 2007 UTC (16 years, 11 months ago) by nieder
Branch: MAIN
CVS Tags: HEAD
new pattern files

1 ! Syntax Highlighting Patterns for diff
2 ! Contributed by Andy Piper (andy.piper@freeuk.com)
3 !
4 ! This patten should deal with patches generated as unified, context, ed
5 ! or RCS-style diffs (i.e. created using diff -u, -c, -f or -n), but NOT
6 ! side-by-side format (diff -y)
7 !
8 ! In NEdit Version 5.1x load this pattern by starting nedit with:
9 !
10 ! nedit -import <name of this file>
11 !
12 ! Then, check that the patterns were loaded correctly, and choose Save Defaults
13 ! from the Preferences menu. The new patterns will now be incorporated into
14 ! your own .nedit file, so the next time you start NEdit, you will no longer
15 ! need to use -import.
16 !
17 ! In version 5.1, without -import, you must edit your .nedit file by hand and
18 ! add the contents of each resource below to the corresponding list in your
19 ! .nedit file. Be sure to separate new entries with \n, and continue resource
20 ! strings by escaping all newlines within a resource value with \ (backslash),
21 ! leaving only the last line of the resource value not ending in \.
22 ! Syntax highlighting patterns for diff
23 !
24 nedit.fileVersion: 5.1
25 nedit.highlightPatterns: Diff:1:0{\n\
26 File1:"^\\-\\-\\-\\s .*$":::DiffFile1::\n\
27 File2:"^(\\+\\+\\+\\s|\\*\\*\\*\\s|\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*).*$":::DiffFile2::\n\
28 Lines:"^(@@\\s|!\\s|\\.).*(@@$|$)":::DiffHunk::\n\
29 In:"^(\\+|a[0-9]*\\s[0-9]*).*$":::DiffIn::\n\
30 Out:"^(-|d[0-9]*\\s[0-9]*|c[0-9]*).*$":::DiffOut::\n\
31 }
32 nedit.languageModes: Diff:.diff .patch:"^(---\\s.*$|\\+\\+\\+\\s.*$|\\*\\*\\*\\s.*$)":::::
33 nedit.styles: DiffIn:blue:Plain\n\
34 DiffOut:red:Plain\n\
35 DiffFile1:red:Bold\n\
36 DiffFile2:blue:Bold\n\
37 DiffHunk:purple:Italic

  ViewVC Help
Powered by ViewVC 1.1.17