author | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
commit | f5fa70864c66da0f12f3d34f6451c74e3bfb3103 (patch) (side-by-side diff) | |
tree | ad6585cc10ba3397bed82c87a1b692fa0a4b9e43 /share/tinykate/syntax/desktop.xml | |
parent | 67699ef8fd807a99c08d6401a67e8000bca8f1ca (diff) | |
download | opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.zip opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.gz opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.bz2 |
added syntax highlighting patterns to tinykate
Diffstat (limited to 'share/tinykate/syntax/desktop.xml') (more/less context) (ignore whitespace changes)
-rw-r--r-- | share/tinykate/syntax/desktop.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/share/tinykate/syntax/desktop.xml b/share/tinykate/syntax/desktop.xml new file mode 100644 index 0000000..3c1f6e3 --- a/dev/null +++ b/share/tinykate/syntax/desktop.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language SYSTEM "language.dtd"> +<language name=".desktop" section="Other" extensions="*.desktop;*.kdelnk" mimetype="application/x-desktop"> + <highlighting> + <contexts> + <context attribute="2" lineEndContext="#stay" name="Normal"> + <RegExpr String="^\[.*\]$" attribute="Section" context="#stay"/> + <RegExpr String="\[.*\]" attribute="Language" context="1"/> + <DetectChar char="=" attribute="0" context="1"/> + </context> + <context attribute="0" lineEndContext="#pop" name="Value"/> + </contexts> + <itemDatas> + <itemData name="Normal Text" defStyleNum="dsNormal"/> + <itemData name="Section" defStyleNum="dsKeyword"/> + <itemData name="Key" defStyleNum="dsDataType"/> + <itemData name="Language" defStyleNum="dsNormal" color="#0000FF" selColor="#ffffff" italic="0" bold="1"/> + </itemDatas> + </highlighting> +</language> |