File: highlight.sed

package info (click to toggle)
kate 4%3A4.14.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 33,248 kB
  • ctags: 14,143
  • sloc: xml: 199,666; cpp: 116,559; python: 9,947; ansic: 994; ruby: 397; sh: 368; asm: 166; makefile: 153; php: 137; jsp: 128; haskell: 116; f90: 99; ml: 75; perl: 63; erlang: 54; sed: 48; awk: 40; yacc: 37; tcl: 29; lisp: 24
file content (80 lines) | stat: -rw-r--r-- 949 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# addresses
123d
/rege[xX] ad\/dress/p
\dother \delimitersdn
$D

# ranges
/12/,452n
23~4P
2,$H
78,109F

# negations
/not this line/!h
123,456!g
$!=

# negation of addresses and ranges
/do not replace this line/!G
/blah/,123!x
/begin/,/end/!v
674~12z

# the s command
s/hello/world/6gw/output/file
saw\(it\)h \anotheradelim\1era

# the y command
y/a\nbc/wxyz/
yxabcx\xyzx

# the a, i and c commands
a\
This is literal text\
That is spread over multiple lines\
and even contains \\ escaped backslashes

i\
The i...

c\
... and c commands work similarly

# labels
:label
blabel
tlabel
Tlabel

# the w and r commands
w/output/file
W/another/output/file
r/input/file
R/another/output/file

/the end/q 2

# compound commands
/begin/,/end/{
        l 67
        /test/x
        y/abc/xyz/
}

# semicolons
L 23;x
x;/[Aa]bc/H;$g

# invalid command
/123/k

# excess characters
hblah

# missing line continuation
a
hello world

# invalid flags
s/hello/world/o