/extras/txt2tags.jsf

http://txt2tags.googlecode.com/ · JavaServer Faces · 193 lines · 174 code · 19 blank · 0 comment · 0 complexity · 37ee9fb94a1817c68d068cb9e6ff461e MD5 · raw file

  1. # JOE syntax highlight file for Txt2Tags by Stefano D'Archino
  2. #### Problems ##############################################
  3. # Numbered title only without space after +
  4. # Blocks comment and Verbatim block only first and last line
  5. # No color for Line
  6. # Syntax for List only for the first level
  7. =Idle
  8. =Comment green
  9. =Raw cyan
  10. =List yellow bold
  11. =Bold bold
  12. =Italics magenta
  13. =Underline underline
  14. =Code inverse
  15. =Title red bold
  16. =Table_h cyan bold
  17. =Table cyan
  18. =Link magenta
  19. =Verbatim magenta
  20. :idle Idle
  21. * idle
  22. "\n" maybe
  23. "*" bol_1
  24. "/" ita_1
  25. "_" und_1
  26. "\`" cod_1
  27. "[" link recolor=-1
  28. "@" link_e recolor=-1
  29. :maybe Idle
  30. * idle
  31. "\n" maybe
  32. "%" comment recolor=-1
  33. "*" bol_1
  34. "/" ita_1
  35. "_" und_1
  36. "[" link recolor=-1
  37. "=" title
  38. "|" table_h
  39. "\"" raw_1 recolor=-1
  40. "\:\-" list #!!! \- at the end of string!
  41. "\+" list_n
  42. "\`" ver_1
  43. "@" link_e recolor=-1 # only for lout
  44. #### Comments
  45. :comment Comment
  46. * comment
  47. "\n" maybe
  48. #### Beautifiers
  49. :bol_1 Bold
  50. * idle noeat
  51. "*" bol_2 recolor=-2
  52. :bol_2 Bold
  53. * bol_2
  54. "*" bol_3
  55. :bol_3 Bold
  56. * idle noeat
  57. "*" bol_4
  58. :bol_4 Bold
  59. * idle noeat
  60. :ita_1 Italics
  61. * idle noeat
  62. "/" ita_2 recolor=-2
  63. :ita_2 Italics
  64. * ita_2
  65. "/" ita_3
  66. :ita_3 Italics
  67. * idle noeat
  68. "/" ita_4
  69. :ita_4 Italics
  70. * idle noeat
  71. :und_1 Underline
  72. * idle noeat
  73. "_" und_2 recolor=-2
  74. :und_2 Underline
  75. * und_2
  76. "_" und_3
  77. :und_3 Underline
  78. * idle noeat
  79. "_" und_4
  80. :und_4 Underline
  81. * idle noeat
  82. :cod_1 Code
  83. * idle noeat
  84. "\`" cod_2 recolor=-2
  85. :cod_2 Code
  86. * cod_2 recolor=-3 ####
  87. "\`" cod_3
  88. :cod_3 Code
  89. * idle noeat
  90. "\`" cod_4
  91. :cod_4 Code
  92. * idle noeat
  93. ############# Table
  94. :table_h Table_h
  95. * table recolor=-2
  96. "|" table_h_1 recolor=-2
  97. :table_h_1 Table_h
  98. * table_h_1
  99. "\n" table
  100. :table Table
  101. * table recolor=-2
  102. "\n" maybe
  103. ######### Blocks
  104. :raw_1 Raw
  105. * idle noeat
  106. "\"" raw_2
  107. :raw_2 Raw
  108. * idle noeat
  109. "\"" raw_3
  110. :raw_3 Raw
  111. * raw_3
  112. "\"" raw_4
  113. :raw_4 Raw
  114. * idle noeat
  115. "\"" raw_4
  116. :raw_5 Raw
  117. * idle noeat
  118. "\"" raw_5
  119. :raw_6 Raw
  120. * raw_6
  121. "\n" maybe
  122. #### List
  123. :list List
  124. * idle noeat
  125. " " list_2 recolor=-2
  126. :list_2 List
  127. * idle noeat
  128. :list_n List
  129. * title_n noeat
  130. " " list_2 recolor=-2
  131. "+" title_n_2 noeat
  132. :link Link
  133. * link
  134. "[" link_2
  135. "]" idle
  136. :link_2 Link
  137. * link_2
  138. "]" link
  139. :link_e Link
  140. * idle noeat
  141. :ver_1 Verbatim
  142. * idle noeat
  143. "\`" ver_2
  144. :ver_2 Verbatim
  145. * cod_2 noeat
  146. "\`" ver_3 recolor=-3
  147. :ver_3 Verbatim
  148. * ver_3
  149. "\n" maybe
  150. #### Title
  151. :title Title
  152. * title
  153. "=" title_2 noeat
  154. "\n" maybe
  155. :title_2 Title
  156. * title_2
  157. "=" title_3 noeat
  158. "\n" maybe
  159. :title_3 Title
  160. * title_3
  161. "=" maybe noeat
  162. "\n" maybe
  163. :title_n Title
  164. * title_n
  165. "+" title_n_2 noeat
  166. "\n" maybe
  167. :title_n_2 Title
  168. * title_n_2
  169. "+" title_n_3 noeat
  170. "\n" maybe
  171. :title_n_3 Title
  172. * title_n_3
  173. "+" maybe noeat
  174. "\n" maybe