Advertisement
Guest User

Untitled

a guest
Oct 28th, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.64 KB | None | 0 0
  1. ;----------------------------------------------;
  2. ; Coder plugin syntax file ;
  3. ;----------------------------------------------;
  4.  
  5. ;Author: Fr0sT, based on wisgest's JS file
  6. ;===============
  7.  
  8. ;Colors
  9. ; Color need to be in #RRGGBB format.
  10. ; If color equal to zero, then color ignored.
  11. ;
  12. ;Font styles
  13. ; 0 ignored.
  14. ; 1 normal.
  15. ; 2 bold.
  16. ; 3 italic.
  17. ; 4 bold italic.
  18. ;
  19. ;For comfort file viewing/editing set tab size to 8 or higher.
  20.  
  21.  
  22. Extensions:
  23. ;==========
  24. ;File types
  25. ;==========
  26. as
  27.  
  28.  
  29. ;----------------------------------------------;
  30. ; HighLight ;
  31. ;----------------------------------------------;
  32.  
  33. ;Flags (sum of the members)
  34. ; 1 case sensitive.
  35. ; 2 word is a composition of characters ("Words:" section only). Example: "0123456789" - highlight words that contain only digits.
  36. ; 4 quote end required ("Quotes:" section only).
  37. ; 8 quote start string is ignored and last meet delimiter used as quote start ("Quotes:" section only).
  38. ; 16 quote end string is ignored and first meet delimiter used as quote end ("Quotes:" section only).
  39. ; 32 don't highlight quote start ("Quotes:" section only).
  40. ; 64 don't highlight quote end ("Quotes:" section only).
  41. ; 128 don't catch and don't highlight quote start ("Quotes:" section only).
  42. ; 256 don't catch and don't highlight quote end ("Quotes:" section only).
  43. ; 512 quote start, delimiter or word located at line start.
  44. ; 1024 quote end, delimiter or word located at line end.
  45. ; 2048 quote start is surrounded with delimiters ("Quotes:" section only).
  46. ; 4096 quote end is surrounded with delimiters ("Quotes:" section only).
  47. ; 8192 quote doesn't contain delimiters ("Quotes:" section only).
  48. ; 16384 only quote start string is catched ("Quotes:" section only).
  49.  
  50.  
  51. Font:
  52. ;=================================================================
  53. ;FontStyle FontSize FaceName
  54. ;=================================================================
  55. ${HighLight_FontStyle} ${HighLight_FontSize} ${HighLight_FaceName}
  56.  
  57.  
  58. Colors:
  59. ;======================================================================================================================================================================================================================================================================================
  60. ;BasicTextColor BasicBkColor SelTextColor SelBkColor LineTextColor LineBkColor ColumnColor MarkerColor CaretColor UrlColor ActiveUrlColor
  61. ;======================================================================================================================================================================================================================================================================================
  62. ${HighLight_BasicTextColor} ${HighLight_BasicBkColor} ${HighLight_SelTextColor} ${HighLight_SelBkColor} ${HighLight_LineTextColor} ${HighLight_LineBkColor} ${HighLight_ColumnColor} ${HighLight_MarkerColor} ${HighLight_CaretColor} ${HighLight_UrlColor} ${HighLight_ActiveUrlColor}
  63.  
  64.  
  65. AutoMark:
  66. ;====================================================================================================================
  67. ;AutoMarkFlags AutoMarkFontStyle AutoMarkTextColor AutoMarkBkColor
  68. ;====================================================================================================================
  69. ${HighLight_AutoMarkFlags} ${HighLight_AutoMarkFontStyle} ${HighLight_AutoMarkTextColor} ${HighLight_AutoMarkBkColor}
  70.  
  71.  
  72. Quotes:
  73. ;======================================================================
  74. ;Flags Font Color Color Quote Quote Escape Quote Quote
  75. ; style text bkgrnd start end char include exclude
  76. ;======================================================================
  77. ;5=1+4
  78. 5 3 ${STR} 0 `"` `"` "\" "" ""
  79. ;5=1+4
  80. 5 3 ${STR} 0 "'" "'" "\" "" ""
  81. ;1=1
  82. 1 3 ${COMM} 0 "//" "" ":" "" ""
  83. ;5=1+4
  84. 5 3 ${COMM} 0 "/*" "*/" "" "" ""
  85. ;--RegExp--
  86. ;16517=1+4+128+16384
  87. 16517 0 0 0 "/" "//" "\" "" "/"
  88. ;16517=1+4+128+16384
  89. 16517 0 0 0 "/" "/*" "\" "" "/"
  90. ;16517=1+4+128+16384
  91. 16517 0 0 0 "/" "{" "\" "" "/"
  92. ;5=1+4
  93. 5 0 ${AREA} 0 "/" "/" "\" "" ""
  94.  
  95.  
  96. Delimiters:
  97. ;======================================
  98. ;Flags Font Color Color Char(s)
  99. ; style text bkgrnd
  100. ;======================================
  101. 1 0 0 0 " "
  102. 1 0 0 0 " "
  103. 1 0 ${DEL1} 0 (
  104. 1 0 ${DEL1} 0 )
  105. 1 0 ${DEL2} 0 {
  106. 1 0 ${DEL2} 0 }
  107. 1 0 ${DEL2} 0 .
  108. 1 0 ${DEL2} 0 ,
  109. 1 0 ${DEL2} 0 :
  110. 1 0 ${DEL2} 0 ;
  111. 1 0 ${DEL2} 0 !
  112. 1 0 ${DEL2} 0 ~
  113. 1 0 ${DEL2} 0 |
  114. 1 0 ${DEL2} 0 =
  115. 1 0 ${DEL2} 0 -
  116. 1 0 ${DEL2} 0 *
  117. 1 0 ${DEL2} 0 +
  118. 1 0 ${DEL2} 0 /
  119. 1 0 ${DEL2} 0 <
  120. 1 0 ${DEL2} 0 >
  121. 1 0 ${DEL2} 0 &
  122. 1 0 ${DEL2} 0 ^
  123. 1 0 ${DEL2} 0 %
  124. 1 0 ${DEL2} 0 ?
  125. 1 0 ${DEL2} 0 [
  126. 1 0 ${DEL2} 0 ]
  127.  
  128.  
  129. Words:
  130. ;===================================
  131. ;Flags Font Color Color Word
  132. ; style text bkgrnd
  133. ;===================================
  134. ;3=1+2
  135. 3 0 ${NUM} 0 "0123456789"
  136. ;--Keyword--
  137. 1 0 ${OP} 0 #endinitclip
  138. 1 0 ${OP} 0 #include
  139. 1 0 ${OP} 0 #initclip
  140. 1 0 ${OP} 0 _root
  141. 1 0 ${OP} 0 class
  142. 1 0 ${OP} 0 delete
  143. 1 0 ${OP} 0 dynamic
  144. 1 0 ${OP} 0 extends
  145. 1 0 ${OP} 0 function
  146. 1 0 ${OP} 0 get
  147. 1 0 ${OP} 0 implements
  148. 1 0 ${OP} 0 import
  149. 1 0 ${OP} 0 in
  150. 1 0 ${OP} 0 instanceof
  151. 1 0 ${OP} 0 interface
  152. 1 0 ${OP} 0 intrinsic
  153. 1 0 ${OP} 0 new
  154. 1 0 ${OP} 0 private
  155. 1 0 ${OP} 0 public
  156. 1 0 ${OP} 0 set
  157. 1 0 ${OP} 0 static
  158. 1 0 ${OP} 0 super
  159. 1 0 ${OP} 0 this
  160. 1 0 ${OP} 0 typeof
  161. 1 0 ${OP} 0 var
  162. 1 0 ${OP} 0 void
  163. 1 0 ${OP} 0 Void
  164. ;--Types--
  165. 1 0 ${TYPE} 0 -Infinity
  166. 1 0 ${TYPE} 0 Array
  167. 1 0 ${TYPE} 0 Boolean
  168. 1 0 ${TYPE} 0 Date
  169. 1 0 ${TYPE} 0 false
  170. 1 0 ${TYPE} 0 Infinity
  171. 1 0 ${TYPE} 0 int
  172. 1 0 ${TYPE} 0 MovieClip
  173. 1 0 ${TYPE} 0 NaN
  174. 1 0 ${TYPE} 0 newline
  175. 1 0 ${TYPE} 0 null
  176. 1 0 ${TYPE} 0 Number
  177. 1 0 ${TYPE} 0 Object
  178. 1 0 ${TYPE} 0 String
  179. 1 0 ${TYPE} 0 true
  180. 1 0 ${TYPE} 0 undefined
  181. ;--Conditional--
  182. 1 0 ${IF} 0 break
  183. 1 0 ${IF} 0 case
  184. 1 0 ${IF} 0 catch
  185. 1 0 ${IF} 0 continue
  186. 1 0 ${IF} 0 default
  187. 1 0 ${IF} 0 do
  188. 1 0 ${IF} 0 else
  189. 1 0 ${IF} 0 finally
  190. 1 0 ${IF} 0 for
  191. 1 0 ${IF} 0 if
  192. 1 0 ${IF} 0 return
  193. 1 0 ${IF} 0 switch
  194. 1 0 ${IF} 0 throw
  195. 1 0 ${IF} 0 try
  196. 1 0 ${IF} 0 while
  197. 1 0 ${IF} 0 with
  198.  
  199.  
  200. ;----------------------------------------------;
  201. ; CodeFold ;
  202. ;----------------------------------------------;
  203.  
  204. ;Flags (sum of the members)
  205. ; 1 case sensitive.
  206. ; 2 force get fold name for function list from left at the fold start ("Folds:" section only).
  207. ; 4 force get fold name for function list from right at the fold start, including fold start ("Folds:" section only).
  208. ; 8 fold start located at line start ("Folds:" section only).
  209. ; 16 fold start located at line end ("Folds:" section only).
  210. ; 32 fold end located at line start ("Folds:" section only).
  211. ; 64 fold end located at line end ("Folds:" section only).
  212. ; 128 don't catch fold end ("Folds:" section) or skip end ("Skips:" section).
  213. ; 256 additional to 128 flag - more priority is given to sibling level instead of parent level ("Folds:" section only).
  214. ; 512 comment fold - fold ignore any other folds and skips inside ("Folds:" section only).
  215. ; 1024 reserved.
  216. ; 2048 deny fold - founded fold will be ignored ("Folds:" section only).
  217. ; 4096 xml fold - "<tag" and "</tag>", "<single" and "/>", "<single" and ">" ("Folds:" section only).
  218. ; 8192 don't check delimiters from left of fold start ("Folds:" section only).
  219. ; 16384 don't check delimiters from right of fold start ("Folds:" section only).
  220. ; 32768 don't check delimiters from left of fold end ("Folds:" section only).
  221. ; 65536 don't check delimiters from right of fold end ("Folds:" section only).
  222. ; 131072 deny delimiters ("Folds:" section only).
  223.  
  224.  
  225. FoldPanel:
  226. ;=================================================================================================================================================================================================================================================================================================================================================================================================================================================================
  227. ;PanelFirstBkColor PanelSecondBkColor PanelNormalFoldColor PanelActiveFoldColor PanelNormalNodeOpenBkColor PanelNormalNodeCloseBkColor PanelActiveNodeOpenBkColor PanelActiveNodeCloseBkColor PanelNormalNodeOpenSignColor PanelNormalNodeCloseSignColor PanelActiveNodeOpenSignColor PanelActiveNodeCloseSignColor
  228. ;=================================================================================================================================================================================================================================================================================================================================================================================================================================================================
  229. ${CodeFold_PanelFirstBkColor} ${CodeFold_PanelSecondBkColor} ${CodeFold_PanelNormalFoldColor} ${CodeFold_PanelActiveFoldColor} ${CodeFold_PanelNormalNodeOpenBkColor} ${CodeFold_PanelNormalNodeCloseBkColor} ${CodeFold_PanelActiveNodeOpenBkColor} ${CodeFold_PanelActiveNodeCloseBkColor} ${CodeFold_PanelNormalNodeOpenSignColor} ${CodeFold_PanelNormalNodeCloseSignColor} ${CodeFold_PanelActiveNodeOpenSignColor} ${CodeFold_PanelActiveNodeCloseSignColor}
  230.  
  231.  
  232. FoldList:
  233. ;================================================
  234. ;ListTextColor ListBkColor
  235. ;================================================
  236. ${CodeFold_ListTextColor} ${CodeFold_ListBkColor}
  237.  
  238.  
  239. TagMark:
  240. ;============================================================================================================
  241. ;TagMarkFlags TagMarkFontStyle TagMarkTextColor TagMarkBkColor
  242. ;============================================================================================================
  243. ${CodeFold_TagMarkFlags} ${CodeFold_TagMarkFontStyle} ${CodeFold_TagMarkTextColor} ${CodeFold_TagMarkBkColor}
  244.  
  245.  
  246. Skips:
  247. ;=============================
  248. ;Flags Skip Skip Escape
  249. ; start end char
  250. ;=============================
  251. 1 `"` `"` "\"
  252. 1 `'` `'` "\"
  253. 1 "//" "" ":"
  254. ;--RegExp--
  255. ;129=1+128
  256. 129 "/" "//" "\"
  257. ;129=1+128
  258. 129 "/" "/*" "\"
  259. ;129=1+128
  260. 129 "/" "{" "\"
  261. 1 "/" "/" "\"
  262.  
  263.  
  264. Folds:
  265. ;=============================================================
  266. ;Flags Font Color Color Fold Fold Delimiters
  267. ; style text bkgrnd start end
  268. ;=============================================================
  269. 1 0 0 0 "{" "}" ""
  270. ;513=1+512
  271. 513 3 ${COMM} 0 "/*" "*/" ""
  272. ;--switch...case...default--
  273. ;169=1+8+32+128
  274. 169 0 0 0 "case" "case" " "
  275. ;169=1+8+32+128
  276. 169 0 0 0 "case" "default" " :"
  277. ;169=1+8+32+128
  278. 169 0 0 0 "default" "case" " :"
  279. ;98441=1+8+128+32768+65536
  280. 98441 0 0 0 "case" "}" " :"
  281. ;98441=1+8+128+32768+65536
  282. 98441 0 0 0 "default" "}" " :"
  283.  
  284.  
  285. ;----------------------------------------------;
  286. ; AutoComplete ;
  287. ;----------------------------------------------;
  288.  
  289. Blocks:
  290. ;======================================================================
  291. ;Abbreviations and blocks
  292. ;
  293. ; $~abbr abbreviation.
  294. ; $[] set caret to this position. Can be multiple (hot spots).
  295. ; $[text] select text. Can be multiple (hot spots).
  296. ; $$ symbol $.
  297. ; $\] escape symbol ]. Can be used in $[text] block: $[One [1$\] ].
  298. ; ${VAR} variable assigned from Coder::Settings.
  299. ; $; comment line.
  300. ;======================================================================
  301. $~do
  302. do
  303. {
  304. ${AutoComplete_Indent}$[]
  305. }
  306. while ($[]);
  307.  
  308. $~for
  309. for ($[]; $[]; $[])
  310. {
  311. ${AutoComplete_Indent}$[]
  312. }
  313.  
  314. $~if
  315. if ($[])
  316. {
  317. ${AutoComplete_Indent}$[]
  318. }
  319.  
  320. $~switch
  321. switch ($[])
  322. {
  323. ${AutoComplete_Indent}case $[]:
  324. ${AutoComplete_Indent}${AutoComplete_Indent}$[]
  325. ${AutoComplete_Indent}${AutoComplete_Indent}break;
  326. ${AutoComplete_Indent}case $[]:
  327. ${AutoComplete_Indent}${AutoComplete_Indent}$[]
  328. ${AutoComplete_Indent}${AutoComplete_Indent}break;
  329. ${AutoComplete_Indent}default:
  330. ${AutoComplete_Indent}${AutoComplete_Indent}$[]
  331. ${AutoComplete_Indent}${AutoComplete_Indent}break;
  332. }
  333.  
  334. $~try
  335. try
  336. {
  337. ${AutoComplete_Indent}$[]
  338. }
  339. catch ($[])
  340. {
  341. ${AutoComplete_Indent}$[]
  342. }
  343.  
  344. $~while
  345. while ($[])
  346. {
  347. ${AutoComplete_Indent}$[]
  348. }
  349.  
  350. $~fn
  351. function $[name]()
  352. {
  353. ${AutoComplete_Indent}$[]
  354. }
  355.  
  356.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement