/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. <contexts>
  9. <context name="Context" attribute="Normal" lineEndContext="#stay">
  10. <RegExpr attribute="BoldItalic" context="Context" String="\*\*//(.*)//\*\*" minimal="true"/>
  11. <RegExpr attribute="BoldItalic" context="Context" String="//\*\*(.*)\*\*//" minimal="true" />
  12. <RegExpr attribute="Bold" context="Context" String="\*\*.*\*\*" minimal="true"/>
  13. <RegExpr attribute="Italic" context="Context" String="//.*//" minimal="true"/>
  14. <RegExpr attribute="Underline" context="Context" String="__.*__" minimal="true"/>
  15. <RegExpr attribute="Strikeout" context="Context" String="--.*--" minimal="true"/>
  16. <RegExpr attribute="Date" context="Context" String="%%date(\(.*\))?"/>
  17. <RegExpr attribute="PreProc" context="Context" String="%!preproc:(.*)$" minimal="true"/>
  18. <RegExpr attribute="PostProc" context="Context" String="%!postproc:(.*)$" minimal="true"/>
  19. <RegExpr attribute="Options" context="Context" String="%!(.*)$" minimal="true"/>
  20. <RegExpr attribute="Comment" context="Context" String="%.*"/>
  21. <RegExpr attribute="Monospaced" context="Context" String="``.*``" minimal="true"/>
  22. <RegExpr attribute="Verbatim Line" context="Context" String="``` .*"/>
  23. <RegExpr attribute="Verbatim Area" context="Context" String="```" />
  24. <RegExpr attribute="Raw Line" context="Context" String='\"\"\" .*'/>
  25. <RegExpr attribute="Raw Area" context="Context" String='\"\"\"' />
  26. <RegExpr attribute="Title" context="Context" String=" *=[^=].*[^=]=(\[.*\])?\s*$" column="0" beginRegion="Header" endRegion="Header"/>
  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. <RangeDetect attribute="Link" char="[" char1="]"/>
  37. <RegExpr String="(http:)[\S]*($|[\s])" attribute="URL" context="Context" />
  38. <RegExpr attribute="EOF" context="Context" String="$$" column="0" beginRegion="Header" endRegion="Header"/>
  39. <RegExpr attribute="Tabel" context="Context" String=" *\|\| .*" column="0"/>
  40. <RegExpr attribute="Tabel" context="Context" String=" *\| .*" column="0"/>
  41. <RegExpr attribute="List" context="Context" String=" *\- " column="0"/>
  42. <RegExpr attribute="DefList" context="Context" String=" *\: " column="0"/>
  43. <RegExpr attribute="NumList" context="Context" String=" *\+ " column="0"/>
  44. <RegExpr attribute="Quote" context="Context" String=" *\t.*"/>
  45. <RegExpr attribute="Bar" context="Context" String="\s*([_=-]{20,})\s*$"/>
  46. </context>
  47. </contexts>
  48. <itemDatas>
  49. <itemData name="Normal" defStyleNum="dsNormal" />
  50. <itemData name="Date" defStyleNum="dsNormal" color="#FF0000" italic="1" />
  51. <itemData name="Comment" defStyleNum="dsNormal" color="#666666" italic="1" />
  52. <itemData name="BoldItalic" defStyleNum="dsNormal" bold="1" italic="1" />
  53. <itemData name="Bold" defStyleNum="dsNormal" color="#445675" bold="1" />
  54. <itemData name="Italic" defStyleNum="dsNormal" color="#653A39" italic="1" />
  55. <itemData name="Underline" defStyleNum="dsNormal" color="#386742" underline="1" />
  56. <itemData name="Strikeout" defStyleNum="dsNormal" color="#644A9B" strikeOut="1" />
  57. <itemData name="Monospaced" defStyleNum="dsNormal" color="#006600" />
  58. <itemData name="Verbatim Line" defStyleNum="dsNormal" color="#006600" />
  59. <itemData name="Verbatim Area" defStyleNum="dsNormal" color="#006600" />
  60. <itemData name="Raw Line" defStyleNum="dsNormal" color="#006600" />
  61. <itemData name="Raw Area" defStyleNum="dsNormal" color="#006600" />
  62. <itemData name="Title" defStyleNum="dsNormal" color="#990000" />
  63. <itemData name="Link" defStyleNum="dsNormal" color="#0930DE" />
  64. <itemData name="URL" defStyleNum="dsNormal" color="#0930DE" />
  65. <itemData name="Tabel" defStyleNum="dsNormal" color="#FF0000" />
  66. <itemData name="DefList" defStyleNum="dsNormal" color="#D200DD" />
  67. <itemData name="List" defStyleNum="dsNormal" color="#D200DD" />
  68. <itemData name="NumList" defStyleNum="dsNormal" color="#D200DD" />
  69. <itemData name="Quote" defStyleNum="dsNormal" color="brown" />
  70. <itemData name="Bar" defStyleNum="dsNormal" color="#C0C0C0" />
  71. <itemData name="PreProc" defStyleNum="dsNormal" color="#848B00" italic="1" />
  72. <itemData name="PostProc" defStyleNum="dsNormal" color="#C05600" italic="1" />
  73. <itemData name="Options" defStyleNum="dsNormal" color="#C0036E" italic="1" />
  74. </itemDatas>
  75. </highlighting>
  76. </language>