PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/extras/txt2tags-kate.xml

http://txt2tags.googlecode.com/
XML | 80 lines | 73 code | 4 blank | 3 comment | 0 complexity | 7a81d862ed6cd80c80a18cc1baa90138 MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!DOCTYPE language SYSTEM "language.dtd">
 3<!-- Created by Juliano Dorneles dos Santos <juliano_dorneles@yahoo.com.br> -->
 4<!-- Fixed for 3.2 Helio Chissini de Castro <helio@kde.org> -->
 5<!-- Extended and adapted (v1.20) by Eric Forgeot < http://esclinux.tk > -->
 6<language name="txt2tags" extensions="*.t2t" section="Markup" mimetype="text/txt2tags" version="1.20" kateversion="2.4" casesensitive="1">
 7<highlighting>
 8
 9<contexts>
10	<context name="Context" attribute="Normal" lineEndContext="#stay">
11		<RegExpr attribute="BoldItalic" context="Context" String="\*\*//(.*)//\*\*" minimal="true"/>
12		<RegExpr attribute="BoldItalic" context="Context" String="//\*\*(.*)\*\*//" minimal="true" />
13		<RegExpr attribute="Bold" context="Context" String="\*\*.*\*\*" minimal="true"/>
14		<RegExpr attribute="Italic" context="Context" String="//.*//" minimal="true"/>
15		<RegExpr attribute="Underline" context="Context" String="__.*__" minimal="true"/>
16		<RegExpr attribute="Strikeout" context="Context" String="--.*--" minimal="true"/>
17		<RegExpr attribute="Date" context="Context" String="%%date(\(.*\))?"/>
18		<RegExpr attribute="PreProc" context="Context" String="%!preproc:(.*)$" minimal="true"/>
19		<RegExpr attribute="PostProc" context="Context" String="%!postproc:(.*)$" minimal="true"/>
20		<RegExpr attribute="Options" context="Context" String="%!(.*)$" minimal="true"/>
21		<RegExpr attribute="Comment" context="Context" String="%.*"/>
22		<RegExpr attribute="Monospaced" context="Context" String="``.*``" minimal="true"/>
23		<RegExpr attribute="Verbatim Line" context="Context" String="``` .*"/>
24		<RegExpr attribute="Verbatim Area" context="Context" String="```"  />
25		<RegExpr attribute="Raw Line" context="Context" String='\"\"\" .*'/>
26		<RegExpr attribute="Raw Area" context="Context" String='\"\"\"'  />
27		<RegExpr attribute="Title" context="Context" String=" *=[^=].*[^=]=(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
28		<RegExpr attribute="Title" context="Context" String=" *==[^=].*[^=]==(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
29		<RegExpr attribute="Title" context="Context" String=" *===[^=].*[^=]===(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
30		<RegExpr attribute="Title" context="Context" String=" *====[^=].*[^=]====(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
31		<RegExpr attribute="Title" context="Context" String=" *=====[^=].*[^=]=====(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
32		<RegExpr attribute="Title" context="Context" String=" *\+[^=].*[^=]\+(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
33		<RegExpr attribute="Title" context="Context" String=" *\+\+[^=].*[^=]\+\+(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
34		<RegExpr attribute="Title" context="Context" String=" *\+\+\+[^=].*[^=]\+\+\+(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
35		<RegExpr attribute="Title" context="Context" String=" *\+\+\+\+[^=].*[^=]\+\+\+\+(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
36		<RegExpr attribute="Title" context="Context" String=" *\+\+\+\+\+[^=].*[^=]\+\+\+\+\+(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
37		<RangeDetect attribute="Link" char="[" char1="]"/>
38		<RegExpr String="(http:)[\S]*($|[\s])" attribute="URL" context="Context" />
39		<RegExpr attribute="EOF" context="Context" String="$$" column="0" beginRegion="Header" endRegion="Header"/>
40		<RegExpr attribute="Tabel" context="Context" String=" *\|\| .*" column="0"/>
41		<RegExpr attribute="Tabel" context="Context" String=" *\| .*" column="0"/>
42		<RegExpr attribute="List" context="Context" String=" *\- " column="0"/>
43		<RegExpr attribute="DefList" context="Context" String=" *\: " column="0"/>
44		<RegExpr attribute="NumList" context="Context" String=" *\+ " column="0"/>
45		<RegExpr attribute="Quote" context="Context" String=" *\t.*"/>
46		<RegExpr attribute="Bar" context="Context" String="\s*([_=-]{20,})\s*$"/>
47	</context>		
48</contexts>
49
50<itemDatas>
51	<itemData name="Normal" defStyleNum="dsNormal" />
52	<itemData name="Date" defStyleNum="dsNormal" color="#FF0000" italic="1" />
53	<itemData name="Comment" defStyleNum="dsNormal" color="#666666" italic="1" />
54	<itemData name="BoldItalic" defStyleNum="dsNormal" bold="1" italic="1" />
55	<itemData name="Bold" defStyleNum="dsNormal" color="#445675" bold="1" />
56	<itemData name="Italic" defStyleNum="dsNormal" color="#653A39" italic="1" />
57	<itemData name="Underline" defStyleNum="dsNormal" color="#386742" underline="1" />
58	<itemData name="Strikeout" defStyleNum="dsNormal" color="#644A9B" strikeOut="1" />
59	<itemData name="Monospaced" defStyleNum="dsNormal" color="#006600" />
60	<itemData name="Verbatim Line" defStyleNum="dsNormal" color="#006600" />
61	<itemData name="Verbatim Area" defStyleNum="dsNormal" color="#006600" />
62	<itemData name="Raw Line" defStyleNum="dsNormal" color="#006600" />
63	<itemData name="Raw Area" defStyleNum="dsNormal" color="#006600" />
64	<itemData name="Title" defStyleNum="dsNormal" color="#990000" />
65	<itemData name="Link" defStyleNum="dsNormal" color="#0930DE" />
66	<itemData name="URL" defStyleNum="dsNormal" color="#0930DE" />
67	<itemData name="Tabel" defStyleNum="dsNormal" color="#FF0000" />
68	<itemData name="DefList" defStyleNum="dsNormal" color="#D200DD" />
69	<itemData name="List" defStyleNum="dsNormal" color="#D200DD" />
70	<itemData name="NumList" defStyleNum="dsNormal" color="#D200DD" />
71	<itemData name="Quote" defStyleNum="dsNormal" color="brown" />
72	<itemData name="Bar" defStyleNum="dsNormal" color="#C0C0C0" />
73	<itemData name="PreProc" defStyleNum="dsNormal" color="#848B00" italic="1" />
74	<itemData name="PostProc" defStyleNum="dsNormal" color="#C05600" italic="1" />
75	<itemData name="Options" defStyleNum="dsNormal" color="#C0036E" italic="1" />
76</itemDatas>
77
78</highlighting>
79
80</language>