File: ppd.xml

package info (click to toggle)
kf6-syntax-highlighting 6.20.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 49,872 kB
  • sloc: xml: 205,656; cpp: 12,882; python: 3,055; sh: 965; perl: 814; ruby: 494; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; exp: 61; erlang: 54; sql: 51; java: 47; sed: 45; objc: 37; tcl: 36; awk: 31; asm: 30; fortran: 18; cs: 10
file content (60 lines) | stat: -rw-r--r-- 3,002 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE language []>

<!--
The following documentation is available for PPD:
- File Format Specification: http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf
- Update to the Specification: http://partners.adobe.com/public/developer/en/ps/5645.PPD_Update.pdf
- CUPS PPD Extensions: http://www.cups.org/documentation.php/doc-1.4/spec-ppd.html
-->

<language name="PostScript Printer Description" version="4" kateversion="5.0" section="Markup" extensions="*.ppd" author="Lukas Sommer" mimetype="application/vnd.cups-ppd" license="Public Domain">

    <highlighting>

        <contexts>
            <context attribute="Option" lineEndContext="#stay" name="contextNormal">
                <Detect2Chars context="contextComment" char="*" char1="%" column="0"/>
                <DetectChar attribute="Colon" context="contextValue" char=":" />
                <StringDetect attribute="Keyword" String="*OpenUI" beginRegion="ui"/>
                <StringDetect attribute="Keyword" String="*CloseUI" endRegion="ui"/>
                <StringDetect attribute="Keyword" String="*OpenGroup" beginRegion="group"/>
                <StringDetect attribute="Keyword" String="*CloseGroup" endRegion="group"/>
                <RegExpr attribute="Keyword" String="\*[&#33;-&#46;&#48;-&#57;&#59;-&#126;]*"/> <!-- According to http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf page 16 (page 20 in the PDF file), all characters from 33 to 126 are allowed, except ':' and '/'. -->
            </context>
            <context attribute="Comment" lineEndContext="#pop" name="contextComment">
                <DetectSpaces />
                <IncludeRules context="##Comments"/>
            </context>
            <context attribute="Value" lineEndContext="#pop" name="contextValue">
                <DetectSpaces/>
                <DetectChar attribute="Value" context="contextValueMultiLine" char="&quot;" />
                <RegExpr attribute="Value" context="contextValueSingleLine" String="."/>
            </context>
            <context attribute="Value" lineEndContext="#stay" name="contextValueMultiLine">
                <DetectSpaces/>
                <DetectChar attribute="Value" context="#pop" char="&quot;" />
            </context>
            <context attribute="Value" lineEndContext="#pop" name="contextValueSingleLine">
            </context>
        </contexts>

        <itemDatas>
          <itemData name="Comment" defStyleNum="dsComment"/>
          <itemData name="Keyword" defStyleNum="dsKeyword"/>
          <itemData name="Colon"   defStyleNum="dsKeyword"/>
          <itemData name="Value"  defStyleNum="dsString"/>
          <itemData name="Option"  defStyleNum="dsOthers"/>
        </itemDatas>

    </highlighting>

    <general>
        <comments>
            <comment name="singleLine" start="*%"/>
        </comments>
    </general>

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