/extras/txt2tags-kate.xml
http://txt2tags.googlecode.com/ · XML · 80 lines · 73 code · 4 blank · 3 comment · 0 complexity · 7a81d862ed6cd80c80a18cc1baa90138 MD5 · raw file
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE language SYSTEM "language.dtd">
- <!-- Created by Juliano Dorneles dos Santos <juliano_dorneles@yahoo.com.br> -->
- <!-- Fixed for 3.2 Helio Chissini de Castro <helio@kde.org> -->
- <!-- Extended and adapted (v1.20) by Eric Forgeot < http://esclinux.tk > -->
- <language name="txt2tags" extensions="*.t2t" section="Markup" mimetype="text/txt2tags" version="1.20" kateversion="2.4" casesensitive="1">
- <highlighting>
- <contexts>
- <context name="Context" attribute="Normal" lineEndContext="#stay">
- <RegExpr attribute="BoldItalic" context="Context" String="\*\*//(.*)//\*\*" minimal="true"/>
- <RegExpr attribute="BoldItalic" context="Context" String="//\*\*(.*)\*\*//" minimal="true" />
- <RegExpr attribute="Bold" context="Context" String="\*\*.*\*\*" minimal="true"/>
- <RegExpr attribute="Italic" context="Context" String="//.*//" minimal="true"/>
- <RegExpr attribute="Underline" context="Context" String="__.*__" minimal="true"/>
- <RegExpr attribute="Strikeout" context="Context" String="--.*--" minimal="true"/>
- <RegExpr attribute="Date" context="Context" String="%%date(\(.*\))?"/>
- <RegExpr attribute="PreProc" context="Context" String="%!preproc:(.*)$" minimal="true"/>
- <RegExpr attribute="PostProc" context="Context" String="%!postproc:(.*)$" minimal="true"/>
- <RegExpr attribute="Options" context="Context" String="%!(.*)$" minimal="true"/>
- <RegExpr attribute="Comment" context="Context" String="%.*"/>
- <RegExpr attribute="Monospaced" context="Context" String="``.*``" minimal="true"/>
- <RegExpr attribute="Verbatim Line" context="Context" String="``` .*"/>
- <RegExpr attribute="Verbatim Area" context="Context" String="```" />
- <RegExpr attribute="Raw Line" context="Context" String='\"\"\" .*'/>
- <RegExpr attribute="Raw Area" context="Context" String='\"\"\"' />
- <RegExpr attribute="Title" context="Context" String=" *=[^=].*[^=]=(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
- <RegExpr attribute="Title" context="Context" String=" *==[^=].*[^=]==(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
- <RegExpr attribute="Title" context="Context" String=" *===[^=].*[^=]===(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
- <RegExpr attribute="Title" context="Context" String=" *====[^=].*[^=]====(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
- <RegExpr attribute="Title" context="Context" String=" *=====[^=].*[^=]=====(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
- <RegExpr attribute="Title" context="Context" String=" *\+[^=].*[^=]\+(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
- <RegExpr attribute="Title" context="Context" String=" *\+\+[^=].*[^=]\+\+(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
- <RegExpr attribute="Title" context="Context" String=" *\+\+\+[^=].*[^=]\+\+\+(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
- <RegExpr attribute="Title" context="Context" String=" *\+\+\+\+[^=].*[^=]\+\+\+\+(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
- <RegExpr attribute="Title" context="Context" String=" *\+\+\+\+\+[^=].*[^=]\+\+\+\+\+(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
- <RangeDetect attribute="Link" char="[" char1="]"/>
- <RegExpr String="(http:)[\S]*($|[\s])" attribute="URL" context="Context" />
- <RegExpr attribute="EOF" context="Context" String="$$" column="0" beginRegion="Header" endRegion="Header"/>
- <RegExpr attribute="Tabel" context="Context" String=" *\|\| .*" column="0"/>
- <RegExpr attribute="Tabel" context="Context" String=" *\| .*" column="0"/>
- <RegExpr attribute="List" context="Context" String=" *\- " column="0"/>
- <RegExpr attribute="DefList" context="Context" String=" *\: " column="0"/>
- <RegExpr attribute="NumList" context="Context" String=" *\+ " column="0"/>
- <RegExpr attribute="Quote" context="Context" String=" *\t.*"/>
- <RegExpr attribute="Bar" context="Context" String="\s*([_=-]{20,})\s*$"/>
- </context>
- </contexts>
- <itemDatas>
- <itemData name="Normal" defStyleNum="dsNormal" />
- <itemData name="Date" defStyleNum="dsNormal" color="#FF0000" italic="1" />
- <itemData name="Comment" defStyleNum="dsNormal" color="#666666" italic="1" />
- <itemData name="BoldItalic" defStyleNum="dsNormal" bold="1" italic="1" />
- <itemData name="Bold" defStyleNum="dsNormal" color="#445675" bold="1" />
- <itemData name="Italic" defStyleNum="dsNormal" color="#653A39" italic="1" />
- <itemData name="Underline" defStyleNum="dsNormal" color="#386742" underline="1" />
- <itemData name="Strikeout" defStyleNum="dsNormal" color="#644A9B" strikeOut="1" />
- <itemData name="Monospaced" defStyleNum="dsNormal" color="#006600" />
- <itemData name="Verbatim Line" defStyleNum="dsNormal" color="#006600" />
- <itemData name="Verbatim Area" defStyleNum="dsNormal" color="#006600" />
- <itemData name="Raw Line" defStyleNum="dsNormal" color="#006600" />
- <itemData name="Raw Area" defStyleNum="dsNormal" color="#006600" />
- <itemData name="Title" defStyleNum="dsNormal" color="#990000" />
- <itemData name="Link" defStyleNum="dsNormal" color="#0930DE" />
- <itemData name="URL" defStyleNum="dsNormal" color="#0930DE" />
- <itemData name="Tabel" defStyleNum="dsNormal" color="#FF0000" />
- <itemData name="DefList" defStyleNum="dsNormal" color="#D200DD" />
- <itemData name="List" defStyleNum="dsNormal" color="#D200DD" />
- <itemData name="NumList" defStyleNum="dsNormal" color="#D200DD" />
- <itemData name="Quote" defStyleNum="dsNormal" color="brown" />
- <itemData name="Bar" defStyleNum="dsNormal" color="#C0C0C0" />
- <itemData name="PreProc" defStyleNum="dsNormal" color="#848B00" italic="1" />
- <itemData name="PostProc" defStyleNum="dsNormal" color="#C05600" italic="1" />
- <itemData name="Options" defStyleNum="dsNormal" color="#C0036E" italic="1" />
- </itemDatas>
- </highlighting>
- </language>