File: xorg.xml

package info (click to toggle)
ksyntax-highlighting 5.116.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,640 kB
  • sloc: xml: 186,656; cpp: 12,164; python: 1,202; sh: 898; perl: 515; ruby: 406; pascal: 393; php: 149; javascript: 140; jsp: 132; lisp: 131; haskell: 124; ansic: 107; f90: 94; cobol: 81; makefile: 78; ml: 75; yacc: 71; csh: 62; erlang: 54; sql: 51; objc: 37; java: 32; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (66 lines) | stat: -rw-r--r-- 2,668 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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language>
<language name="x.org Configuration" section="Configuration" extensions="xorg.conf" mimetype="" version="4" kateversion="5.0" author="Jan Janssen (medhefgo@web.de)" license="LGPL">

<highlighting>
<contexts>
 <context name="xorg" attribute="Normal Text" lineEndContext="#stay">
  <StringDetect String="Section" attribute="Section" context="Section" beginRegion="Section" insensitive="true" />
  <DetectChar char="#" context="Comment" />
 </context>

 <context name="Section" attribute="Normal Text" lineEndContext="#stay">
  <RangeDetect char="&quot;" char1="&quot;" attribute="Section Name" context="Section Content" />
  <RangeDetect char="'" char1="'" attribute="Section Name" context="Section Content" />
  <DetectIdentifier attribute="Alert" />
  <DetectChar char="#" context="Comment" />
 </context>

 <context name="Section Content" attribute="Normal Text" lineEndContext="#stay">
  <StringDetect String="EndSection" attribute="Section" context="#pop#pop" endRegion="Section" insensitive="true" />
  <StringDetect String="EndSubSection" attribute="Section" context="#pop#pop" endRegion="SubSection" insensitive="true" />
  <StringDetect String="SubSection" attribute="Section" context="Section" beginRegion="SubSection" insensitive="true" />
  <RegExpr String="\b\w+\b" context="Keyword" />
  <DetectChar char="#" context="Comment" />
 </context>

 <context name="Keyword" attribute="Keyword" lineEndContext="#pop">
  <RangeDetect attribute="Value" char="&quot;" char1="&quot;" />
  <RangeDetect attribute="Value" char="'" char1="'" />
  <Float attribute="Float" />
  <Int attribute="Int" />
  <RegExpr attribute="Value2" String="[\w\d]+" />
  <DetectChar char="#" context="Comment" />
 </context>

 <context name="Comment" attribute="Comment" lineEndContext="#pop">
  <DetectSpaces />
  <IncludeRules context="##Comments" />
  <DetectIdentifier />
 </context>
</contexts>


<itemDatas>
 <itemData name="Normal Text" defStyleNum="dsNormal" />
 <itemData name="Section" defStyleNum="dsFunction" />
 <itemData name="Section Name" defStyleNum="dsString" />
 <itemData name="Value" defStyleNum="dsDataType" />
 <itemData name="Keyword" defStyleNum="dsKeyword" />
 <itemData name="Alert" defStyleNum="dsError" />
 <itemData name="Int" defStyleNum="dsDecVal" />
 <itemData name="Value2" defStyleNum="dsOthers" />
 <itemData name="Float" defStyleNum="dsFloat" />
 <itemData name="Comment" defStyleNum="dsComment" />
</itemDatas>
</highlighting>


<general>
 <comments>
  <comment name="singleLine" start="#" />
 </comments>
</general>

</language>
<!-- kate: replace-tabs on; tab-width 1; indent-width 1; -->