新公司 做网站 流程,小程序搭建赚钱吗,在一呼百应上做网站行吗,游戏平台网站开发ABB RAPID 在 Notepad 中语法高亮的实现 分类#xff1a; Misc2014-04-08 15:43 145人阅读 评论(0) 收藏 举报notepadNotepad 内置了一个称为 UDL2.0 (User Defined Language) 的引擎#xff0c;来实现用户自定义语法高亮#xff0c;使用它#xff0c;可以定制自己的代码语… ABB RAPID 在 Notepad 中语法高亮的实现 分类 Misc2014-04-08 15:43 145人阅读 评论(0) 收藏 举报notepadNotepad 内置了一个称为 UDL2.0 (User Defined Language) 的引擎来实现用户自定义语法高亮使用它可以定制自己的代码语言。 相关的参考 http://udl20.weebly.com/ ABB Rapid 语法类似于 PascalUltraedit 文本编辑器已经有语法高亮定义。因此可以在参考并引用其中的关键字等信息。 Ultraedit 的语言定义文件http://www.ultraedit.com/files/wf/abb-s4.uew 之所以要使用 Notepad 而不是使用现成的 Ultraedit 是因为后者是收费软件完全可以用前者来代替。 可导入的 ABB RAPID Notepad UDL 定义文件 [html] view plaincopy NotepadPlus UserLang nameRAPID_MOSTONE extmod sys prg udlVersion2.1 Settings Global caseIgnoredyes allowFoldOfCommentsyes foldCompactno forcePureLC0 decimalSeparator0 / Prefix Keywords1no Keywords2no Keywords3no Keywords4no Keywords5no Keywords6no Keywords7no Keywords8no / /Settings KeywordLists Keywords nameComments00! 01 02 03%%% 04%%%/Keywords Keywords nameNumbers, prefix1/Keywords Keywords nameNumbers, prefix2/Keywords Keywords nameNumbers, extras1/Keywords Keywords nameNumbers, extras2/Keywords Keywords nameNumbers, suffix1/Keywords Keywords nameNumbers, suffix2/Keywords Keywords nameNumbers, range/Keywords Keywords nameOperators1, : [ ] - * / \ ;/Keywords Keywords nameOperators2DIV MOD NOT AND OR XOR/Keywords Keywords nameFolders in code1, openMODULE THEN PROC WHILE FOR TEST FUNC RECORD TRAP /Keywords Keywords nameFolders in code1, middleELSE ELSEIF CASE DEFAULT/Keywords Keywords nameFolders in code1, closeENDIF ENDFOR ENDTRAP ENDWHILE ENDTEST ENDPROC ENDMODULE ENDFUNC ENDRECORD/Keywords Keywords nameFolders in code2, open/Keywords Keywords nameFolders in code2, middle/Keywords Keywords nameFolders in code2, close/Keywords Keywords nameFolders in comment, openregin/Keywords Keywords nameFolders in comment, middle/Keywords Keywords nameFolders in comment, closeendregin/Keywords Keywords nameKeywords1BACKWARD CONST FROM INOUT NOSTEPIN NOVIEW PERS RAISE READONLY RETRY STEP SYSMODULE IF DO TO TRYNEXT VAR VIEWONLY WITH/Keywords Keywords nameKeywords2AccSet ActUnit Add CallByVar Clear ClkReset ClkStart ClkStop Close ConfJ ConfL CONNECT CorrClear CorrCon CorrDiscon CorrWrite DeactUnit Decr EoffsOff EOffsOn EoffsSet ERRNO ErrWrite GripLoad IDelete Idisable IEnable Incr IndAMove IndCMove IndDMove IndReset IndRMove InvertDO IODisable IOEnable IsignalDI ISignalDO Isleep ITimer IVarValue IWatch Load MoveAbsJ MoveC MoveJ MoveL Open PathResol PdispOff PDispOn PDispSet PulseDO Reset RestoPath Rewind SearchC SearchL Set SetAO SetDO SetGO SingArea SoftAct SoftDeact StartMove StopMove StorePath TPErase TPReadFK TPReadNum TPShow TPWrite TriggC TriggEquip TriggInt TriggIO TriggJ TriggL TuneReset TuneServo UnLoad VelSet WaitDI WaitDO WaitTime WaitUntil WriteBin WriteStrBin WZBoxDef WZCylDef WZDisable WZDOSet WZEnable WZFree WZLimSup WZSphDef/Keywords Keywords nameKeywords3bool clock confdata corrdescr dionum errnum extjoint intnum iodev jointtarget loaddata local mecunit motsetdata num o_jointtarget o_robtarget orient pos pose progdisp robjoint robtarget shapedata signalai signalao signaldi signaldo signalgi signalgo speeddata string symnum tooldata tpnum triggdata tunetype wobjdata wzstationary wztemporary zonedata seamdata weavedata welddata/Keywords Keywords nameKeywords4Abs ACos AOutput ArgName ASin ATan ATan2 ByteToStr CDate CjointT ClkRead CorrRead Cos CPos CRobT CTime CTool CWObj DefDFrame DefFrame Dim DOutput EulerZYX Exp GetTime Goutput IndInpos IndSpeed IsPers IsVar MirPos NumToStr Offs OpMode OrientZYX ORobT PoseInv PoseMult PoseVect Pow Present ReadBin ReadMotor ReadNum ReadStr RelTool Round RunMode Sin Sqrt StrFind StrLen StrMap StrMatch StrMemb StrOrder StrPart StrToByte StrToVal Tan TestDI Trunc ValToStr/Keywords Keywords nameKeywords5AbsPosVergleich CheckHomePos CheckParity EndSync FahreZuPos High Low Meldung mv PosVergleich ProgInfo RobSync SetParity SMoveJ SMoveL SyncEvent WaitBreakDI WaitMsgDI WaitTPBreakDI/Keywords Keywords nameKeywords6TRUE FALSE/Keywords Keywords nameKeywords7ERROR GOTO RETURN Stop Break EXIT ExitCycle/Keywords Keywords nameKeywords8ArcC ArcL ArcLStart ArcLEnd ArcCStart ArcCEnd/Keywords Keywords nameDelimiters00 01 02 03( 04 05) 06{ 07 08} 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23/Keywords /KeywordLists Styles WordsStyle nameDEFAULT fgColor000000 bgColorFFFFFF fontNameCourier New fontStyle0 nesting0 / WordsStyle nameCOMMENTS fgColor008000 bgColorFFFFFF fontNameCourier New fontStyle0 nesting0 / WordsStyle nameLINE COMMENTS fgColor008000 bgColorFFFFFF fontNameCourier New fontStyle2 nesting0 / WordsStyle nameNUMBERS fgColor800080 bgColorFFFFFF fontNameCourier New fontStyle0 nesting0 / WordsStyle nameKEYWORDS1 fgColor0000FF bgColorFFFFFF fontNameCourier New fontStyle0 nesting0 / WordsStyle nameKEYWORDS2 fgColor400080 bgColorFFFFFF fontNameCourier New fontStyle1 nesting0 / WordsStyle nameKEYWORDS3 fgColorFF00FF bgColorFFFFFF fontNameCourier New fontStyle0 nesting0 / WordsStyle nameKEYWORDS4 fgColor000080 bgColorFFFFFF fontNameCourier New fontStyle0 nesting0 / WordsStyle nameKEYWORDS5 fgColor0000A0 bgColorFFFFFF fontName fontStyle0 nesting0 / WordsStyle nameKEYWORDS6 fgColor0000A0 bgColorFFFFFF fontName fontStyle1 nesting0 / WordsStyle nameKEYWORDS7 fgColorFF0000 bgColorFFFFFF fontName fontStyle1 nesting0 / WordsStyle nameKEYWORDS8 fgColor0000A0 bgColorFFFFFF fontName fontStyle1 nesting0 / WordsStyle nameOPERATORS fgColor006000 bgColorFFFFFF fontNameCourier New fontStyle0 nesting0 / WordsStyle nameFOLDER IN CODE1 fgColor0000FF bgColorFFFFFF fontNameCourier New fontStyle0 nesting0 / WordsStyle nameFOLDER IN CODE2 fgColor000000 bgColorFFFFFF fontName fontStyle0 nesting0 / WordsStyle nameFOLDER IN COMMENT fgColor408080 bgColorFFFF80 fontName fontStyle3 nesting0 / WordsStyle nameDELIMITERS1 fgColor0080C0 bgColorFFFFFF fontNameCourier New fontStyle0 nesting0 / WordsStyle nameDELIMITERS2 fgColor004000 bgColorFFFFFF fontName fontStyle0 nesting17038336 / WordsStyle nameDELIMITERS3 fgColorFF00FF bgColorFFFFFF fontName fontStyle0 nesting0 / WordsStyle nameDELIMITERS4 fgColor000000 bgColorFFFFFF fontName fontStyle0 nesting0 / WordsStyle nameDELIMITERS5 fgColor000000 bgColorFFFFFF fontName fontStyle0 nesting0 / WordsStyle nameDELIMITERS6 fgColor000000 bgColorFFFFFF fontName fontStyle0 nesting0 / WordsStyle nameDELIMITERS7 fgColor000000 bgColorFFFFFF fontName fontStyle0 nesting0 / WordsStyle nameDELIMITERS8 fgColor000000 bgColorFFFFFF fontName fontStyle0 nesting0 / /Styles /UserLang /NotepadPlus 图在 Notepad 中自定义语言 语法高亮效果 添加了 regin/endregin 注释折叠