PageRenderTime 20ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/extras/txt2tags-gedit.lang

http://txt2tags.googlecode.com/
Unknown | 102 lines | 81 code | 21 blank | 0 comment | 0 complexity | c011e1a27bb1af35421edbdae80ac1a2 MD5 | raw file
  1<?xml version="1.0" encoding="UTF-8"?>
  2<!DOCTYPE language SYSTEM "language.dtd">
  3<language _name="txt2tags" version="1.0" _section="Markup" mimetypes="text/x-txt2tags" >
  4
  5	<escape-char>\</escape-char>
  6	
  7	<string _name="Italic" style="Character" end-at-line-end="FALSE">
  8		<start-regex>(^//)|(\ //)</start-regex>
  9		<end-regex>//</end-regex>
 10	</string>
 11	
 12	<string _name="Bold" style="Character" end-at-line-end="FALSE">
 13		<start-regex>\*\*</start-regex>
 14		<end-regex>\*\*</end-regex>
 15	</string>
 16	
 17	<string _name="Underline" style="Character" end-at-line-end="FALSE">
 18		<start-regex>__</start-regex>
 19		<end-regex>__</end-regex>
 20	</string>
 21
 22	<string _name="Monospace" style="String" end-at-line-end="FALSE">
 23		<start-regex>``</start-regex>
 24		<end-regex>``</end-regex>
 25	</string>
 26
 27	<string _name="Title" style="Data Type" end-at-line-end="True">
 28		<start-regex>=[^=]</start-regex>
 29		<end-regex>[^=]=</end-regex>
 30	</string>
 31	
 32	<string _name="Title2" style="Others 2" end-at-line-end="True">
 33		<start-regex>==[^=]</start-regex>
 34		<end-regex>[^=]==</end-regex>
 35	</string>
 36
 37	<string _name="Title3" style="Others 3" end-at-line-end="True">
 38		<start-regex>===[^=]</start-regex>
 39		<end-regex>[^=]===</end-regex>
 40	</string>
 41
 42	<string _name="Title4" style="Character" end-at-line-end="TRUE">
 43		<start-regex>====[^=]</start-regex>
 44		<end-regex>[^=]====</end-regex>
 45	</string>
 46
 47	<string _name="Title5" style="Character" end-at-line-end="TRUE">
 48		<start-regex>=====[^=]</start-regex>
 49		<end-regex>[^=]=====</end-regex>
 50	</string>
 51
 52	<line-comment _name="Quote" style="Comment">
 53		<start-regex>\t</start-regex>
 54	</line-comment>
 55
 56	<line-comment _name="Table" style="String">
 57		<start-regex>\|</start-regex>
 58	</line-comment>
 59	
 60	<line-comment _name="DefList" style="Comment">
 61		<start-regex>^ : </start-regex>
 62	</line-comment>
 63	<line-comment _name="List" style="Comment">
 64		<start-regex>^ - </start-regex>
 65	</line-comment>
 66	<line-comment _name="NumList" style="Comment">
 67		<start-regex>^ \+ </start-regex>
 68	</line-comment>
 69
 70	<line-comment _name="Line Comment" style="Comment">
 71		<start-regex>%[^%!]</start-regex>
 72	</line-comment>	
 73	
 74	<block-comment _name="Block Comment" style="Comment">
 75		<start-regex>%%%</start-regex>
 76       	<end-regex>%%%</end-regex>
 77	</block-comment>
 78
 79	<block-comment _name="VerbatimArea" style="Comment">
 80		<start-regex>^```\n</start-regex>
 81       	<end-regex>```</end-regex>
 82	</block-comment>
 83
 84	<line-comment _name="Verbatim Line" style="Comment">
 85		<start-regex>^```</start-regex>
 86	</line-comment>	
 87	
 88	<syntax-item _name="Class" style="Character">
 89		<start-regex>"""</start-regex>
 90		<end-regex>"""</end-regex>
 91	</syntax-item>
 92
 93	<syntax-item _name="Link" style="Comment">
 94		<start-regex>\[</start-regex>
 95		<end-regex>\]</end-regex>
 96	</syntax-item>
 97
 98	<line-comment _name="Preprocessor" style="Character">
 99		<start-regex>^\%\!</start-regex>
100	</line-comment>
101	
102</language>