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

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!--
0003     Kate syntax highlight filter for Textile formatted documents
0004 
0005     Copyright 2012 alexander Kabakov. http://kabakov.wordpress.com/
0006     Licensed under GPL license.
0007 -->
0008 
0009 <!DOCTYPE language
0010             [           
0011             <!ENTITY strongregex "(\s|^)\*[^*]\w.*\w[^*]\*(\s|\.|,|;|:|\-|\?|$)">
0012             <!ENTITY strikeoutregex "(\s|^)-[^-]\w.*\w[^-]-(\s|\.|,|;|:|\-|\?|$)">
0013             <!ENTITY blockattrsregex "(\(\w+(#\w+)?\))?">
0014             <!ENTITY formatregex "(&gt;|&lt;|=|&lt;&gt;)?">
0015             <!ENTITY name "(?![0-9])[\w_:][\w.:_-]*">
0016 ]>
0017             
0018 <language section="Markup" name="Textile" 
0019         version="6" kateversion="5.0"
0020         extensions="*.textile" priority="15"
0021         author="Alexander Kabakov (kabakov.as@gmail.com)"
0022         license="LGPL" >
0023     <highlighting>
0024         <contexts>
0025             <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text" >
0026                 <StringDetect attribute="comment" context="comment" String="&lt;!--" beginRegion="comment" />
0027                 <RegExpr attribute="macro" String="\{\{&name;\}\}" />
0028                 
0029                 <Detect2Chars context="sectiontitle_block"  char="h" char1="1" column="0" />
0030                 <Detect2Chars context="sectionheader_block" char="h" char1="2" column="0" />                
0031                 <Detect2Chars context="sectionheader_block" char="h" char1="3" column="0" />
0032                 <Detect2Chars context="sectionheader_block" char="h" char1="4" column="0" />
0033                 <Detect2Chars context="sectionheader_block" char="h" char1="5" column="0" />
0034                 
0035                 <RegExpr attribute="textblock" String="^(p|pre|bq|bc)&blockattrsregex;&formatregex;\." column="0" />
0036                 <DetectChar context="image" char="!"/>
0037                 
0038                 <IncludeRules context="inc" />
0039 
0040                 <RegExpr attribute="itemlist" String="^[\*\#]+\s" column="0" />
0041                 <RegExpr attribute="htmllink" String='".*":http(s)?:[\w_/\\\d\.%\?&amp;=-]*' />
0042             </context>
0043             
0044             <context name="image" lineEndContext="#pop" attribute="image">
0045                 <RegExpr String="&blockattrsregex;" attribute="blockattrs" />
0046                 <RegExpr String="\w+\.(png|jpg|jpeg|gif|bmp)" attribute="imagefilename" />
0047                 <DetectChar char="!" context="#pop" attribute="image"/>
0048             </context>
0049             
0050             <context name="sectiontitle_block" lineEndContext="#pop" attribute="sectiontitle">
0051                 <RegExpr String="&blockattrsregex;" attribute="sectionblockattrs" />
0052             </context>
0053             
0054             <context name="sectionheader_block" lineEndContext="#pop" attribute="sectionheader">
0055                 <RegExpr String="&blockattrsregex;" attribute="sectionblockattrs" />
0056             </context>
0057             
0058             <context name="comment" attribute="comment" lineEndContext="#stay">
0059                 <DetectSpaces/>
0060                 <StringDetect attribute="comment" context="#pop" String="--&gt;" endRegion="comment" />
0061                 <IncludeRules context="##Comments" />
0062                 <DetectIdentifier/>
0063             </context>
0064             
0065             <context attribute="Normal Text" name="inc" lineEndContext="#stay" >
0066                 <RegExpr attribute="strong" String="&strongregex;" />
0067                 <RegExpr attribute="strikeout" minimal="true" String="&strikeoutregex;"/>
0068             </context>
0069         </contexts>
0070 
0071         <itemDatas>
0072             <itemData name="Normal Text" defStyleNum="dsNormal" />
0073             
0074             <itemData name="sectiontitle" defStyleNum="dsKeyword" bold="true" />
0075             <itemData name="sectionheader" defStyleNum="dsFunction" bold="true" />
0076             <itemData name="sectionblockattrs" defStyleNum="dsComment" bold="true"/>
0077             <itemData name="blockattrs" defStyleNum="dsComment" />
0078             <itemData name="textblock"  defStyleNum="dsComment" />
0079             
0080             <itemData name="strong" defStyleNum="dsNormal" bold="true" />
0081             <itemData name="strikeout" defStyleNum="dsNormal" strikeOut="true" />
0082             
0083             <itemData name="itemlist" defStyleNum="dsDataType" />
0084             
0085             <itemData name="macro"  defStyleNum="dsComment" bold="true"/>
0086             <itemData name="comment"  defStyleNum="dsComment" />
0087             
0088             <itemData name="image"  defStyleNum="dsFloat" />
0089             <itemData name="imagefilename"  defStyleNum="dsKeyword" />
0090             <itemData name="htmllink" defStyleNum="dsDataType" />
0091         </itemDatas>
0092 
0093     </highlighting>
0094 
0095     <general>
0096         <comments>
0097             <comment name="multiLine" start="&lt;!--" end="--&gt;" region="comment" />
0098         </comments>
0099     </general>
0100 
0101 </language>
0102 <!-- kate: replace-tabs on; tab-width 4; indent-width 4; -->