;----------------------------------------------; ; Coder plugin syntax file ; ;----------------------------------------------; ;Colors ; Color need to be in #RRGGBB format. ; If color equal to zero, then color ignored. ; ;Font styles ; 0 ignored. ; 1 normal. ; 2 bold. ; 3 italic. ; 4 bold italic. ; ;For comfort file viewing/editing set tab size to 8 or higher. ;Smarty 3 template syntax file ;Author: Lenchik ;http://akelpad.sourceforge.net/files/plugs/Coder/smarty.coder ;Recomendations: ; - use XBrackets plugin ;Revision 1.6 (2012-08-12, AkelPad 4.7.8, Coder 10.0) ;Compatibility with AkelPad 4.7.8 and Coder 10.0 ;History: ;Revision 1.5 (2011-12-11, AkelPad 4.7.1, Coder 7.9) ;Compatibility with AkelPad 4.7.1 and Coder 7.9 ;Revision 1.4 (2011-09-03, AkelPad 4.6.5, Coder 7.0) ;Compatibility with Smarty 3.1, new highlighting options ;Revision 1.3 (2011-03-15, AkelPad 4.5.5, Coder 5.0) ;Massive update (new keywords and AutoComplete blocks) ;Revision 1.2 (2011-02-02, AkelPad 4.5.3, Coder 4.6) ;Made comments compatible ;Revision 1.1 (2011-01-09, AkelPad 4.5.2, Coder 4.1) ;+ FoldList section ;Revision 1.0 (2011-01-04, AkelPad 4.5.2, Coder 4.0) Files: ;========== ;File types ;========== *.tpl ;----------------------------------------------; ; HighLight ; ;----------------------------------------------; ;Flags (sum of the members) ; 1 case sensitive. ; 2 word is a composition of characters ("Words:" section only). Example: "0123456789" - highlight words that contain only digits. ; 4 quote end required ("Quotes:" section only). ; 8 quote start string is ignored and last meet delimiter used as quote start ("Quotes:" section only). ; 16 quote end string is ignored and first meet delimiter used as quote end ("Quotes:" section only). ; 32 don't highlight quote start ("Quotes:" section only). ; 64 don't highlight quote end ("Quotes:" section only). ; 128 don't catch and don't highlight quote start ("Quotes:" section only). ; 256 don't catch and don't highlight quote end ("Quotes:" section only). ; 512 quote start, delimiter or word located at line start. ; 1024 quote end, delimiter or word located at line end. ; 2048 quote start is surrounded with delimiters ("Quotes:" section only). ; 4096 quote end is surrounded with delimiters ("Quotes:" section only). ; 8192 quote doesn't contain delimiters ("Quotes:" section only). ; 16384 only quote start string is catched ("Quotes:" section only). Font: ;================================================================= ;FontStyle FontSize FaceName ;================================================================= ${HighLight_FontStyle} ${HighLight_FontSize} ${HighLight_FaceName} Colors: ;============================================================================================================================================================================================================================================================================================================================================================================================================================= ;BasicTextColor BasicBkColor SelTextColor SelBkColor LineTextColor LineBkColor LineBorderColor AltTextColor AltBkColor AltBorderColor ColumnColor MarkerColor CaretColor UrlColor ActiveUrlColor VisitUrlColor ;============================================================================================================================================================================================================================================================================================================================================================================================================================= ${HighLight_BasicTextColor} ${HighLight_BasicBkColor} ${HighLight_SelTextColor} ${HighLight_SelBkColor} ${HighLight_LineTextColor} ${HighLight_LineBkColor} ${HighLight_LineBorderColor} ${HighLight_AltTextColor} ${HighLight_AltBkColor} ${HighLight_AltBorderColor} ${HighLight_ColumnColor} ${HighLight_MarkerColor} ${HighLight_CaretColor} ${HighLight_UrlColor} ${HighLight_ActiveUrlColor} ${HighLight_VisitUrlColor} BkImage: ;================================================== ;BkImageFile BkImageAlpha ;================================================== ${HighLight_BkImageFile} ${HighLight_BkImageAlpha} AutoMark: ;==================================================================================================================== ;AutoMarkFlags AutoMarkFontStyle AutoMarkTextColor AutoMarkBkColor ;==================================================================================================================== ${HighLight_AutoMarkFlags} ${HighLight_AutoMarkFontStyle} ${HighLight_AutoMarkTextColor} ${HighLight_AutoMarkBkColor} Quotes: ;====================================================================== ;Flags Font Color Color Quote Quote Escape Quote Quote ; style text bkgrnd start end char include exclude ;====================================================================== ;Strings without delimiters (spaces, variables signs, smarty tags etc.) ;8197=1+4+8192 8197 3 ${STR} 0 `"` `"` "\" "" "" ;Catch strings with spaces and no variables ;5=1+4 5 3 ${STR} 0 `"` `"` " " "" "${}=" ;All other string suppose to contain variables ;5=1+4 ;5 4 ${STR} 0 `"` `"` "" "" "" ;5=1+4 ;5 2 0 0 `{` `}` "" "" "" ;5=1+4 5 3 ${STR} 0 "'" "'" "" "" "" ;5=1+4 ;5 3 ${STR} 0 "`" "`" "" "" "" ;5=1+4 5 3 ${COMM} 0 "" "" "" "" ;5=1+4 5 3 ${COMM} 0 "{*" "*}" "" "" "" ;Config variables ;8197=1+4+8192 8197 0 ${TYPE} 0 "#" "#" "" "" `"` ;5=1+4 5 3 ${COMM} 0 "{literal}" "{/literal}" "" "" "" ;Different variables ;273=1+16+256 273 2 ${VAR} 0 "$" "" "" "" "!=, &;" ;273=1+16+256 401 2 ${VAR} 0 "}." "" "" "" "=, &;!" ;273=1+16+256 401 2 ${VAR} 0 "]." "" "" "" "=, &;" ;385=1+128+256 ;385 0 ${VAR} 0 "$" "" "" "" "" ;405=1+4+16+128+256 ;405 0 ${STR} 0 "=" "" "" "" "" ;Specific keyword usage ;273=1+16+256 ;5 1 ${OP} 0 "{cycle" "}" "" "" "" ;Attributes and modifiers with names same to functions: ;133=1+4+128 133 0 ${ATTR} 0 "|" "strip" "" "" "" ;133=1+4+128 133 0 ${ATTR} 0 " " "append" "" "" "" QuotesRE: ;========================================================================================= ;Flags Pattern \BackRef=(FontStyle,ColorText,ColorBk) \BackRef=... ;========================================================================================= ;0 `(")([^"\\]*(\\.[^"\\]*)*)(")` `\1=(0,${DEL1},0) \2=(3,${STR},0) \4=(0,${DEL1},0)` Delimiters: ;====================================== ;Flags Font Color Color Char(s) ; style text bkgrnd ;====================================== 1 0 0 0 `"` 1 0 0 0 " " 1 0 0 0 " " ;1 0 ${VAR} 0 $ 1 0 ${DEL1} 0 ( 1 0 ${DEL1} 0 ) 1 0 ${DEL1} 0 { 1 0 ${DEL1} 0 } 1 0 ${DEL1} 0 / 1 0 ${DEL2} 0 = 1 0 ${DEL2} 0 ! ;1 0 0 0 . 1 0 0 0 - 1 0 ${DEL2} 0 < 1 0 ${DEL2} 0 > 1 0 ${DEL2} 0 @ 1 0 ${DEL2} 0 | 1 0 ${DEL2} 0 : Words: ;=================================== ;Flags Font Color Color Word ; style text bkgrnd ;=================================== ;Numerical ;3=1+2 3 0 ${NUM} 0 "0123456789" ;--Conditional-- 1 0 ${IF} 0 if 1 0 ${IF} 0 else 1 0 ${IF} 0 elseif 1 0 ${IF} 0 for 1 0 ${IF} 0 forelse 1 0 ${IF} 0 in 1 0 ${IF} 0 foreach 1 0 ${IF} 0 as 1 0 ${IF} 0 foreachelse 1 0 ${IF} 0 while ;--Logical-- 1 2 ${OP} 0 true 1 2 ${OP} 0 false ;--Keywords-- 1 0 ${OP} 0 ldelim 1 0 ${OP} 0 rdelim 1 0 ${OP} 0 cycle 1 0 ${OP} 0 section 1 0 ${OP} 0 sectionelse 1 0 ${OP} 0 insert 1 0 ${OP} 0 include 1 0 ${OP} 0 counter 1 0 ${OP} 0 assign 1 0 ${OP} 0 append 1 0 ${OP} 0 strip ; 1 0 ${OP} 0 empty ; 1 0 ${ATTR} 0 file 1 0 ${OP} 0 from 1 0 ${ATTR} 0 name 1 0 ${ATTR} 0 hide 1 0 ${OP} 0 item 1 0 ${OP} 0 key 1 0 ${OP} 0 values 1 0 ${ATTR} 0 scope 1 0 ${OP} 0 script ; 1 0 ${ATTR} 0 prepend 1 0 ${ATTR} 0 nofilter 1 0 ${OP} 0 call 1 0 ${OP} 0 debug 1 0 ${OP} 0 config_load 1 0 ${OP} 0 nocache 1 0 ${IF} 0 step 1 0 ${IF} 0 max 1 0 ${IF} 0 to ; 1 0 ${OP} 0 capture 1 0 ${AREA} 0 block 1 0 ${AREA} 0 extends 1 0 ${AREA} 0 textformat ; {foreach} properties 1 0 ${ATTR} 0 index 1 0 ${ATTR} 0 iteration 1 0 ${ATTR} 0 first 1 0 ${ATTR} 0 last 1 0 ${ATTR} 0 show 1 0 ${ATTR} 0 total ; variable modifiers 1 0 ${ATTR} 0 capitalize 1 0 ${ATTR} 0 cat 1 0 ${ATTR} 0 count_characters 1 0 ${ATTR} 0 count_paragraphs 1 0 ${ATTR} 0 count_sentences 1 0 ${ATTR} 0 count_words 1 0 ${ATTR} 0 date_format 1 0 ${ATTR} 0 default 1 0 ${ATTR} 0 escape 1 0 ${ATTR} 0 indent 1 0 ${ATTR} 0 lower 1 0 ${ATTR} 0 nl2br 1 0 ${ATTR} 0 regex_replace 1 0 ${ATTR} 0 replace 1 0 ${ATTR} 0 spacify 1 0 ${ATTR} 0 string_format 1 0 ${ATTR} 0 strip_tags 1 0 ${ATTR} 0 truncate 1 0 ${ATTR} 0 upper 1 0 ${ATTR} 0 wordwrap ;--Expression Operators-- 0 0 ${IF} 0 eq 0 0 ${IF} 0 ne 0 0 ${IF} 0 neq 0 0 ${IF} 0 gt 0 0 ${IF} 0 lt 0 0 ${IF} 0 gte 0 0 ${IF} 0 ge 0 0 ${IF} 0 lte 0 0 ${IF} 0 le 0 0 ${IF} 0 not 0 0 ${IF} 0 or 0 0 ${IF} 0 and 0 0 ${OP} 0 mod ;----------------------------------------------; ; CodeFold ; ;----------------------------------------------; ;Flags (sum of the members) ; 1 case sensitive. ; 2 force get fold name for function list from left at the fold start ("Folds:" section only). ; 4 force get fold name for function list from right at the fold start, including fold start ("Folds:" section only). ; 8 fold start located at line start ("Folds:" section only). ; 16 fold start located at line end ("Folds:" section only). ; 32 fold end located at line start ("Folds:" section only). ; 64 fold end located at line end ("Folds:" section only). ; 128 don't catch fold end ("Folds:" section) or skip end ("Skips:" section). ; 256 additional to 128 flag - more priority is given to sibling level instead of parent level ("Folds:" section only). ; 512 comment fold - fold ignore any other folds and skips inside ("Folds:" section only). ; 1024 reserved. ; 2048 deny fold - founded fold will be ignored ("Folds:" section only). ; 4096 xml fold - "", "", "" ("Folds:" section only). ; 8192 don't check delimiters from left of fold start ("Folds:" section only). ; 16384 don't check delimiters from right of fold start ("Folds:" section only). ; 32768 don't check delimiters from left of fold end ("Folds:" section only). ; 65536 don't check delimiters from right of fold end ("Folds:" section only). ; 131072 deny delimiters ("Folds:" section only). FoldPanel: ;================================================================================================================================================================================================================================================================================================================================================================================================================================================================= ;PanelFirstBkColor PanelSecondBkColor PanelNormalFoldColor PanelActiveFoldColor PanelNormalNodeOpenBkColor PanelNormalNodeCloseBkColor PanelActiveNodeOpenBkColor PanelActiveNodeCloseBkColor PanelNormalNodeOpenSignColor PanelNormalNodeCloseSignColor PanelActiveNodeOpenSignColor PanelActiveNodeCloseSignColor ;================================================================================================================================================================================================================================================================================================================================================================================================================================================================= ${CodeFold_PanelFirstBkColor} ${CodeFold_PanelSecondBkColor} ${CodeFold_PanelNormalFoldColor} ${CodeFold_PanelActiveFoldColor} ${CodeFold_PanelNormalNodeOpenBkColor} ${CodeFold_PanelNormalNodeCloseBkColor} ${CodeFold_PanelActiveNodeOpenBkColor} ${CodeFold_PanelActiveNodeCloseBkColor} ${CodeFold_PanelNormalNodeOpenSignColor} ${CodeFold_PanelNormalNodeCloseSignColor} ${CodeFold_PanelActiveNodeOpenSignColor} ${CodeFold_PanelActiveNodeCloseSignColor} FoldList: ;================================================ ;ListTextColor ListBkColor ;================================================ ${CodeFold_ListTextColor} ${CodeFold_ListBkColor} TagMark: ;============================================================================================================ ;TagMarkFlags TagMarkFontStyle TagMarkTextColor TagMarkBkColor ;============================================================================================================ ${CodeFold_TagMarkFlags} ${CodeFold_TagMarkFontStyle} ${CodeFold_TagMarkTextColor} ${CodeFold_TagMarkBkColor} Skips: ;============================= ;Flags Skip Skip Escape ; start end char ;============================= 1 `"` `"` "" 1 "'" "'" "" ;1 "//" "" ":" Folds: ;============================================================= ;Flags Font Color Color Fold Fold Delimiters ; style text bkgrnd start end ;============================================================= ;Comments ;513=1+512 513 3 ${COMM} 0 "" "" ;513=1+512 513 3 ${COMM} 0 "{*" "*}" "" ;5=1+4 5 0 0 0 "{block " "{/block}" "" ;1=1 1 0 0 0 "{foreach " "{/foreach}" "" ;5=1+4 5 0 0 0 "{function " "{/function}" "" ;1=1 1 0 0 0 "{if " "{/if}" "" ;385=1+128+256 385 0 0 0 "{if " "{elseif " "" ;385=1+128+256 385 0 0 0 "{if " "{else}" "" ;1=1 1 0 0 0 "{elseif " "{/if}" "" ;385=1+128+256 385 0 0 0 "{elseif " "{elseif " "" ;385=1+128+256 385 0 0 0 "{elseif " "{else}" "" ;1=1 1 0 0 0 "{else}" "{/if}" "" ;5=1+4 5 0 0 0 "{setfilter " "{/setfilter}" "" ;1=1 1 0 0 0 "{textformat " "{/textformat}" "" ;1=1 1 0 0 0 "{while " "{/while}" "" ;----------------------------------------------; ; AutoComplete ; ;----------------------------------------------; Blocks: ;====================================================================== ;Abbreviations and blocks ; ; $~abbr normal abbreviation. ; $=abbr exact abbreviation. May contain delimiters. ; $[] set caret to this position. Can be multiple (hot spots). ; $[text] select text. Can be multiple (hot spots). ; $$ symbol $. ; $\] escape symbol ]. Can be used in $[text] block: $[One [1$\] ]. ; ${VAR} variable assigned from Coder::Settings. ; $; comment line. ;====================================================================== ; XBrackets assumed to be working. That is why there will be no beginning and ending curly braces '{}' inside autocomplete blocks descriptions $~comment {* *} {*$[]*} $~append append $[] $[] index=$[] $~assign assign $[] $[] $~block block $[]}$[]{/block$[] $~call call $[] $[] $~capture capture $[]}$[]{/capture$[] $~config_load config_load $[] $~extends extends $[] $~file= file=$[] $~for $var=$start to $end for $[]=$[] to $[]} ${AutoComplete_Indent}$[] {/for $~for $var=$start to $end step $step for $[]=$[] to $[] step $[]} ${AutoComplete_Indent}$[] {/for $~for + forelse for $[]=$[] to $[]} ${AutoComplete_Indent}$[] {forelse} ${AutoComplete_Indent}$[] {/for $~foreach foreach $[] as $[]} ${AutoComplete_Indent}$[] {/foreach $~index= index=$[] $~index= max=$[] $~name= name=$[] $~section= section=$[] $~value= value=$[] $~var= var=$[]