PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

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