Warning, /frameworks/syntax-highlighting/data/syntax/txt2tags.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!DOCTYPE language
0003 [
0004         <!ENTITY space " ">
0005         <!ENTITY end "(?=\s*$)">
0006         <!ENTITY content "(?:\S(?:.*\S)?)?">
0007         <!ENTITY headerKey "^[a-zA-Z0-9][\w\-\s]*\:(?=\s)">
0008 
0009         <!-- Link (obtained from markdown.xml) -->
0010         <!ENTITY startLink "(?:https?|ftp|news|telnet|gopher|wais)\://">
0011         <!ENTITY implicitLink "\b&startLink;[^&quot;&gt;\s`\)]*[^\s!&quot;&apos;`\(\)\*,\.:;&lt;&gt;\?~\]\}\\](?=[[:punct:]]*(?:[\s\)]|$))">
0012         <!ENTITY link "\b&startLink;[^&quot;&gt;\]\s`\)]*[^\s!&quot;&apos;`\(\)\*,\.:;&lt;&gt;\?~\]\}\\](?=[[:punct:]]*(?:[\s\)\]]|$))">
0013         <!-- Email (source: http://emailregex.com) -->
0014         <!ENTITY email "(?:(?:[^&lt;&gt;\(\)\[\]\\\.,;:\s@&quot;]+(?:\.[^&lt;&gt;\(\)\[\]\\\.,;:\s@&quot;]+)*)|(?:&quot;[^&quot;]+&quot;))@(?:(?:\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}])|(?:(?:[a-zA-Z\-\d]+\.)+[a-zA-Z]{2,}))\b">
0015 
0016         <!ENTITY title1 "(\={1,5})[^=](?:.*[^=])?\1">
0017         <!ENTITY title2 "(\+{1,5})[^\+](?:.*[^\+])?\1">
0018 ]>
0019 
0020 <!-- Created by Juliano Dorneles dos Santos <juliano_dorneles@yahoo.com.br> -->
0021 <!-- Fixed for 3.2 Helio Chissini de Castro <helio@kde.org> -->
0022 <!-- Extended and adapted (v1.20) by Eric Forgeot < http://esclinux.tk > -->
0023 <language name="txt2tags" extensions="*.t2t" section="Markup" mimetype="text/txt2tags" version="9" kateversion="5.0" casesensitive="1">
0024 <highlighting>
0025 
0026 <contexts>
0027 
0028         <!-- Start Document: find header -->
0029         <context name="StartDocument" attribute="Normal" lineEndContext="Normal" lineEmptyContext="Normal" fallthrough="true" fallthroughContext="Normal">
0030                 <RegExpr attribute="Header Title" context="HeaderValue1" String="^&headerKey;" column="0"/>
0031         </context>
0032         <context name="HeaderValue1" attribute="Header Value" lineEndContext="#pop!HeaderKey2" lineEmptyContext="#pop!Normal" />
0033         <context name="HeaderKey2" attribute="Normal" lineEndContext="#stay" lineEmptyContext="#pop!Normal" fallthrough="true" fallthroughContext="#pop!Normal">
0034                 <RegExpr attribute="Header Title" context="#pop!HeaderValue2" String="^&headerKey;" column="0"/>
0035                 <RegExpr context="#pop!Normal" String="^." column="0" lookAhead="true"/>
0036         </context>
0037         <context name="HeaderValue2" attribute="Header Value" lineEndContext="#pop!HeaderKey3" lineEmptyContext="#pop!Normal" />
0038         <context name="HeaderKey3" attribute="Normal" lineEndContext="#stay" lineEmptyContext="#pop!Normal" fallthrough="true" fallthroughContext="#pop!Normal">
0039                 <RegExpr attribute="Header Title" context="#pop!HeaderValue3" String="&headerKey;" column="0"/>
0040                 <RegExpr context="#pop!Normal" String="^." column="0" lookAhead="true"/>
0041         </context>
0042         <context name="HeaderValue3" attribute="Header Value" lineEndContext="#pop!Normal" lineEmptyContext="#pop!Normal" />
0043 
0044         <!-- Normal Document -->
0045         <context name="Normal" attribute="Normal" lineEndContext="#stay">
0046                 <RegExpr attribute="Verbatim Block" context="VerbatimBlock" String="^```&end;" column="0" beginRegion="VerbatimBlock"/>
0047                 <RegExpr attribute="Raw Block" context="RawBlock" String="^&quot;&quot;&quot;&end;" column="0" beginRegion="RawBlock"/>
0048                 <RegExpr attribute="Tagged Block" context="TagBlock" String="^'''&end;" column="0" beginRegion="TagBlock"/>
0049                 <StringDetect attribute="Verbatim Line" context="VerbatimLine" String="```&space;" column="0"/>
0050                 <StringDetect attribute="Raw Line" context="RawLine" String="&quot;&quot;&quot;&space;" column="0"/>
0051                 <StringDetect attribute="Tagged Line" context="TagLine" String="'''&space;" column="0"/>
0052 
0053                 <RegExpr attribute="Bar" context="#stay" String="^\s*[_\=\-]{20,}&end;" column="0"/>
0054                 <RegExpr attribute="Title" context="#stay" String="^\s*(?|&title1;|&title2;)(?:\[.*\])?&end;" column="0" beginRegion="Header" endRegion="Header"/>
0055                 <RegExpr attribute="Tabel" context="Tabel" String="^&space;*\|[\|/_]?&space;" column="0"/>
0056                 <RegExpr attribute="DefList" context="ListLine" String="^&space;*\:&space;" column="0"/>
0057                 <RegExpr attribute="List" context="ListLine" String="^&space;*\-{1,3}&space;" column="0"/>
0058                 <RegExpr attribute="NumList" context="ListLine" String="^&space;*\+{1,3}&space;" column="0"/>
0059                 <DetectChar attribute="Quote" context="Quote" char="&#9;" column="0"/>
0060                 <LineContinue attribute="EOF" context="#stay" char="$" column="0" beginRegion="Header" endRegion="Header"/>
0061 
0062                 <IncludeRules context="Default"/>
0063                 <DetectChar attribute="Comment" context="FindComments" char="%" column="0" lookAhead="true"/>
0064 
0065                 <RegExpr attribute="Link (Normal)" String="&implicitLink;|&email;"/>
0066         </context>
0067         <context name="Default" attribute="Normal" lineEndContext="#stay">
0068                 <StringDetect attribute="Interpolated String" context="InterpolatedString" String="%%date"/>
0069                 <StringDetect attribute="Interpolated String" context="InterpolatedString" String="%%mtime"/>
0070                 <StringDetect attribute="Interpolated String" context="InterpolatedString" String="%%infile"/>
0071                 <StringDetect attribute="Interpolated String" context="InterpolatedString" String="%%outfile"/>
0072                 <StringDetect attribute="Interpolated String" context="#stay" String="%%toc"/>
0073                 <RegExpr attribute="BoldItalic" context="#stay" String="\*\*//&content;//\*\*|//\*\*&content;\*\*//" minimal="true" />
0074                 <RegExpr attribute="Bold" context="#stay" String="\*\*&content;\*\*" minimal="true"/>
0075                 <RegExpr attribute="Italic" context="#stay" String="//&content;//" minimal="true"/>
0076                 <RegExpr attribute="Underline" context="#stay" String="__&content;__" minimal="true"/>
0077                 <RegExpr attribute="Strikeout" context="#stay" String="--&content;--" minimal="true"/>
0078                 <RegExpr attribute="Monospaced" context="#stay" String="``&content;``" minimal="true"/>
0079                 <RangeDetect attribute="Link" context="Link" char="[" char1="]" lookAhead="true"/>
0080         </context>
0081 
0082         <context name="FindComments" attribute="Comment" lineEndContext="#pop">
0083                 <RegExpr attribute="Constant Character" context="#pop!ConstantChar" String="^%!\s*(?:target|encoding|style|options|include|includeconf|preproc|postproc|guicolors)\s*(?:\(\w*\)\s*)?\:" column="0"/>
0084                 <RegExpr attribute="Comment" context="#pop!CommentBlock" String="^%%%&end;" column="0" beginRegion="CommentBlock"/>
0085                 <DetectChar attribute="Comment" context="#pop!CommentLine" char="%" column="0"/>
0086         </context>
0087         <context name="CommentLine" attribute="Comment" lineEndContext="#pop">
0088                 <DetectSpaces />
0089                 <IncludeRules context="##Comments"/>
0090         </context>
0091         <context name="CommentBlock" attribute="Comment" lineEndContext="#stay">
0092                 <RegExpr attribute="Comment" context="#pop" String="^%%%&end;" column="0" endRegion="CommentBlock"/>
0093                 <DetectSpaces />
0094                 <IncludeRules context="##Comments"/>
0095         </context>
0096         <context name="ConstantChar" attribute="Comment" lineEndContext="#pop" />
0097 
0098         <context name="ListLine" attribute="List Content" lineEndContext="#pop">
0099                 <IncludeRules context="Default"/>
0100                 <RegExpr attribute="Link (List Content)" String="&implicitLink;|&email;"/>
0101         </context>
0102         <context name="Tabel" attribute="Tabel" lineEndContext="#pop">
0103                 <RegExpr attribute="Link (Tabel)" String="&implicitLink;|&email;"/>
0104         </context>
0105         <context name="Quote" attribute="Quote" lineEndContext="#pop">
0106                 <RegExpr attribute="Link (Quote)" String="&implicitLink;|&email;"/>
0107         </context>
0108         <context name="Link" attribute="Link" lineEndContext="#pop">
0109                 <DetectChar attribute="Link" context="#pop!LinkContent" char="["/>
0110         </context>
0111         <context name="LinkContent" attribute="Link" lineEndContext="#pop">
0112                 <DetectChar attribute="Link" context="#pop" char="]"/>
0113                 <RegExpr attribute="Link" context="LinkContent" String="\[(?=[^\s\[\]]*\])"/>
0114                 <RegExpr attribute="Link URL" String="&link;|&email;"/>
0115         </context>
0116 
0117         <context name="InterpolatedString" attribute="Interpolated String" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
0118                 <RangeDetect attribute="Interpolated String" context="#pop" char="(" char1=")"/>
0119         </context>
0120         <context name="VerbatimBlock" attribute="Verbatim Block" lineEndContext="#stay">
0121                 <RegExpr attribute="Verbatim Block" context="#pop" String="^```&end;" column="0" endRegion="VerbatimBlock"/>
0122         </context>
0123         <context name="RawBlock" attribute="Raw Block" lineEndContext="#stay">
0124                 <RegExpr attribute="Raw Block" context="#pop" String="^&quot;&quot;&quot;&end;" column="0" endRegion="RawBlock"/>
0125         </context>
0126         <context name="TagBlock" attribute="Tagged Block" lineEndContext="#stay">
0127                 <RegExpr attribute="Tagged Block" context="#pop" String="^'''&end;" column="0" endRegion="TagBlock"/>
0128         </context>
0129         <context name="VerbatimLine" attribute="Verbatim Line" lineEndContext="#pop" />
0130         <context name="RawLine" attribute="Raw Line" lineEndContext="#pop" />
0131         <context name="TagLine" attribute="Tagged Line" lineEndContext="#pop" />
0132 
0133 </contexts>
0134 
0135 <itemDatas>
0136         <itemData name="Normal" defStyleNum="dsNormal" />
0137         <itemData name="Comment" defStyleNum="dsComment" />
0138         <itemData name="Interpolated String" defStyleNum="dsVariable" spellChecking="false" />
0139         <itemData name="Constant Character" defStyleNum="dsPreprocessor" spellChecking="false" />
0140         <itemData name="BoldItalic" defStyleNum="dsNormal" bold="1" italic="1" />
0141         <itemData name="Bold" defStyleNum="dsNormal" bold="1" />
0142         <itemData name="Italic" defStyleNum="dsNormal" italic="1" />
0143         <itemData name="Underline" defStyleNum="dsNormal" underline="1" />
0144         <itemData name="Strikeout" defStyleNum="dsNormal" strikeOut="1" />
0145         <itemData name="Monospaced" defStyleNum="dsInformation" />
0146         <itemData name="Verbatim Line" defStyleNum="dsInformation" />
0147         <itemData name="Verbatim Block" defStyleNum="dsInformation" />
0148         <itemData name="Raw Line" defStyleNum="dsVerbatimString" />
0149         <itemData name="Raw Block" defStyleNum="dsVerbatimString" />
0150         <itemData name="Tagged Line" defStyleNum="dsVerbatimString" />
0151         <itemData name="Tagged Block" defStyleNum="dsVerbatimString" />
0152         <itemData name="Title" defStyleNum="dsFunction" bold="1" />
0153         <itemData name="Link" defStyleNum="dsOthers" />
0154         <itemData name="Tabel" defStyleNum="dsString" />
0155         <itemData name="DefList" defStyleNum="dsSpecialString" bold="1" spellChecking="false" />
0156         <itemData name="List" defStyleNum="dsSpecialString" bold="1" spellChecking="false" />
0157         <itemData name="NumList" defStyleNum="dsSpecialString" bold="1" spellChecking="false" />
0158         <itemData name="List Content" defStyleNum="dsNormal" />
0159         <itemData name="Quote" defStyleNum="dsAttribute" />
0160         <itemData name="Bar" defStyleNum="dsKeyword" spellChecking="false" />
0161         <itemData name="EOF" defStyleNum="dsSpecialChar" spellChecking="false" />
0162         <itemData name="Link (Normal)" defStyleNum="dsNormal" underline="true" spellChecking="false" />
0163         <itemData name="Link (List Content)" defStyleNum="dsNormal" underline="true" spellChecking="false" />
0164         <itemData name="Link (Tabel)" defStyleNum="dsString" underline="true" spellChecking="false" />
0165         <itemData name="Link (Quote)" defStyleNum="dsAttribute" underline="true" spellChecking="false" />
0166         <itemData name="Link URL" defStyleNum="dsOthers" underline="true" spellChecking="false" />
0167         <itemData name="Header Title" defStyleNum="dsAnnotation" />
0168         <itemData name="Header Value" defStyleNum="dsComment" />
0169 </itemDatas>
0170 
0171 </highlighting>
0172 
0173 <general>
0174         <comments>
0175                 <comment name="singleLine" start="%"/>
0176         </comments>
0177 </general>
0178 
0179 </language>
0180 <!-- kate: replace-tabs off; -->