;----------------------------------------------; ; Coder plugin syntax file ; ;----------------------------------------------; ;Colors ; Color need to be in #RRGGBB or #RGB 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. ;Author: Skif_off (2017-05-06) ;AkelPad 4.9.7 and higher ;https://github.com/Lenchik/Akelpad-syntax-highlighting/blob/master/winscp.coder - working version ;https://github.com/Lenchik/Akelpad-syntax-highlighting/blob/master/source_for_developers/winscp.utf8.coder - development version in UTF-8 for easier development on GitHub ;WinSCP Script https://winscp.net/eng/docs/scripting (page last modified: 2017-02-06 by martin) Files: ;========== ;File types ;========== *.winscp ;----------------------------------------------; ; 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). ; 32768 quote doesn't contain any character ("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 Parent Rule ; style text bkgrnd start end char include exclude ID ID ;=================================================================================== ;5=1+4 5 3 ${STR} 0 `"` `"` "" "" "" 0 0 ;513=1+512 513 3 ${COMM} 0 "#" "" "" "" "" 0 0 ;Prints message ;2689=1+128+512+2048 2689 3 ${STR} 0 "echo" "" "" "" "" 0 0 ;8197=1+4+8192 8197 0 ${VAR} 0 "%" "%" "" "" "" 0 0 QuotesRE: ;=========================================================================================== ;Flags Pattern \BackRef=(FontStyle,ColorText,ColorBk) \BackRef=... ParentID RuleID ;=========================================================================================== ;Checksum algorithm (md2, md5, sha-1, sha-224, sha-256, sha-384, sha-512, crc32) 1 "^[ \t]*?(checksum) ([a-z]++\-?\d+)" "\1=(0,${OP},0) \2=(0,${DEL1},0)" 0 0 ;Changes permissions 1 "^[ \t]*?(chmod) ([0-7]{3,4}+)" "\1=(0,${OP},0) \2=(2,0,0)" 0 0 ;Option 1 "^[ \t]*?(option) ([A-Za-z0-9_]++) " "\1=(0,${OP},0) \2=(0,${DEL1},0)" 0 0 ;Protocol URL addresses ;sftp|ftp|ftps|ftpes|http|https|scp :// [ [ : ] [ ; ] @ ] [ : ] / Delimiters: ;=============================================== ;Flags Font Color Color Char(s) Parent ; style text bkgrnd ID ;=============================================== 1 0 0 0 " " 1 0 0 0 " " 1 0 0 0 % 1 0 ${DEL1} 0 ( 1 0 ${DEL1} 0 ) 1 0 ${DEL2} 0 [ 1 0 ${DEL2} 0 ] 1 0 ${DEL2} 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 Parent ; style text bkgrnd ID ;=========================================== ;Commands ;513=1+512 513 0 ${OP} 0 call 513 0 ${OP} 0 cd 513 0 ${OP} 0 checksum 513 0 ${OP} 0 chmod 513 0 ${OP} 0 close 513 0 ${OP} 0 echo 513 0 ${OP} 0 exit 513 0 ${OP} 0 get 513 0 ${OP} 0 help 513 0 ${OP} 0 keepuptodate 513 0 ${OP} 0 lcd 513 0 ${OP} 0 lls 513 0 ${OP} 0 ln 513 0 ${OP} 0 lpwd 513 0 ${OP} 0 ls 513 0 ${OP} 0 mkdir 513 0 ${OP} 0 mv 513 0 ${OP} 0 open 513 0 ${OP} 0 option 513 0 ${OP} 0 put 513 0 ${OP} 0 pwd 513 0 ${OP} 0 rm 513 0 ${OP} 0 rmdir 513 0 ${OP} 0 session 513 0 ${OP} 0 stat 513 0 ${OP} 0 synchronize ;Aliases ;;call 513 0 ${OP} 0 ! ;;exit 513 0 ${OP} 0 bye ;;get 513 0 ${OP} 0 recv 513 0 ${OP} 0 mget ;;help 513 0 ${OP} 0 man ;;ln 513 0 ${OP} 0 symlink ;;ls 513 0 ${OP} 0 dir ;;mv 513 0 ${OP} 0 rename ;;put 513 0 ${OP} 0 send 513 0 ${OP} 0 mput ;Parameters ;;synchronize 1 0 ${IF} 0 both 1 0 ${IF} 0 local 1 0 ${IF} 0 remote ;Switches ;;get 1 0 ${DEL1} 0 -append 1 0 ${DEL1} 0 -delete 1 0 ${DEL1} 0 -filemask 1 0 ${DEL1} 0 -latest 1 0 ${DEL1} 0 -neweronly 1 0 ${DEL1} 0 -nopreservetime 1 0 ${DEL1} 0 -preservetime 1 0 ${DEL1} 0 -resume 1 0 ${DEL1} 0 -resumesupport 1 0 ${DEL1} 0 -speed 1 0 ${DEL1} 0 -transfer ;;keepuptodate ;1 0 ${DEL1} 0 -delete ;1 0 ${DEL1} 0 -filemask 1 0 ${DEL1} 0 -nopermissions 1 0 ${DEL1} 0 -permissions ;1 0 ${DEL1} 0 -resumesupport ;1 0 ${DEL1} 0 -speed ;1 0 ${DEL1} 0 -transfer ;;open 1 0 ${DEL1} 0 -certificate 1 0 ${DEL1} 0 -clientcert 1 0 ${DEL1} 0 -explicit 1 0 ${DEL1} 0 -filezilla 1 0 ${DEL1} 0 -hostkey 1 0 ${DEL1} 0 -implicit 1 0 ${DEL1} 0 -passive 1 0 ${DEL1} 0 -passphrase 1 0 ${DEL1} 0 -privatekey 1 0 ${DEL1} 0 -rawsettings 1 0 ${DEL1} 0 -timeout ;;put ;1 0 ${DEL1} 0 -append ;1 0 ${DEL1} 0 -delete ;1 0 ${DEL1} 0 -filemask ;1 0 ${DEL1} 0 -latest ;1 0 ${DEL1} 0 -neweronly ;1 0 ${DEL1} 0 -nopermissions ;1 0 ${DEL1} 0 -nopreservetime ;1 0 ${DEL1} 0 -permissions ;1 0 ${DEL1} 0 -preservetime ;1 0 ${DEL1} 0 -resume ;1 0 ${DEL1} 0 -resumesupport ;1 0 ${DEL1} 0 -speed ;1 0 ${DEL1} 0 -transfer ;;synchronize 1 0 ${DEL1} 0 -criteria ;1 0 ${DEL1} 0 -delete ;1 0 ${DEL1} 0 -filemask 1 0 ${DEL1} 0 -mirror ;1 0 ${DEL1} 0 -nopermissions ;1 0 ${DEL1} 0 -nopreservetime ;1 0 ${DEL1} 0 -permissions ;1 0 ${DEL1} 0 -preservetime 1 0 ${DEL1} 0 -preview ;1 0 ${DEL1} 0 -resumesupport ;1 0 ${DEL1} 0 -speed ;1 0 ${DEL1} 0 -transfer ;Options (option command) 1 0 ${DEL1} 0 batch 1 0 ${DEL1} 0 confirm 1 0 ${DEL1} 0 echo 1 0 ${DEL1} 0 failonnomatch 1 0 ${DEL1} 0 reconnecttime ;Mode/config 1 2 0 0 abort 1 2 0 0 ascii 1 2 0 0 automatic 1 2 0 0 binary 1 2 0 0 continue 1 2 0 0 off 1 2 0 0 on ;----------------------------------------------; ; 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 ("Folds:" section) or skip start ("Skips:" section) located at line start. ; 16 fold start ("Folds:" section) or skip start ("Skips:" section) located at line end. ; 32 fold end ("Folds:" section) or skip end ("Skips:" section) located at line start. ; 64 fold end ("Folds:" section) or skip end ("Skips:" section) located at line end. ; 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). ; 262144 don't show fold in list ("Folds:" section only). ; 1048576 regular expression in fold start ("Folds:" section) or skip start ("Skips:" section). ; 2097152 regular expression in fold end ("Folds:" section) or skip end ("Skips:" section). Backreference \101 matches \1 in fold start, \102 matches \2 and so on. 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 `"` `"` "" Folds: ;=========================================================================== ;Flags Font Color Color Fold Fold Deli Parent Rule Rule ; style text bkgrnd start end miters ID ID file ;=========================================================================== ;----------------------------------------------; ; AutoComplete ; ;----------------------------------------------; ;Flags (sum of the members) ; 1 force case sensitive. ; 2 force case insensitive. ; 4 regular expression (only for "$="). Scan starts from caret line beginning and metacharacters \a or \z specified caret position. ; 8 Don't show in listbox. CompleteList: ;===================================================================================================================================================================================================================================================================================================================================================================================================================================================================== ;ListFontStyle ListFontSize ListFaceName ListLineGap ListBlockIcon `"C:\1.dll", 0` ListBlockIconMargins "left;right" ListHlBaseIcon `"C:\1.dll", 0` ListHlBaseIconMargins "left;right" ListDocWordIcon `"C:\1.dll", 0` ListDocWordIconMargins "left;right" ListBasicTextColor ListBasicBkColor ListSelTextColor ListSelBkColor ;===================================================================================================================================================================================================================================================================================================================================================================================================================================================================== ${AutoComplete_ListFontStyle} ${AutoComplete_ListFontSize} ${AutoComplete_ListFaceName} ${AutoComplete_ListLineGap} ${AutoComplete_ListBlockIcon} ${AutoComplete_ListBlockIconMargins} ${AutoComplete_ListHlBaseIcon} ${AutoComplete_ListHlBaseIconMargins} ${AutoComplete_ListDocWordIcon} ${AutoComplete_ListDocWordIconMargins} ${AutoComplete_ListBasicTextColor} ${AutoComplete_ListBasicBkColor} ${AutoComplete_ListSelTextColor} ${AutoComplete_ListSelBkColor} Blocks: ;============================================================================= ;Abbreviations and blocks ; ; $~abbr normal abbreviation. ; $(flags)~abbr normal abbreviation with flags. ; $=abbr exact abbreviation. May contain delimiters. ; $(flags)=abbr exact abbreviation with flags. 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. ;=============================================================================