Jump to content

new TorqueScript Syntax for NotePad++ (noemen)


Recommended Posts

Posted

Copy the code below, paste it into a text file and then save that file with the extension ".xml".


Example:

TorqueScript-notepad-pp.xml


Then open NotePad++ and Language -> User Defined Language -> Open the User Defined Language folder ... select the XML you created.


The theme used is DansLeRuSH-Dark.


Suggestions and improvements are welcome.

 

<NotepadPlus>
   <UserLang name="TorqueScript" ext="cs gui mis" udlVersion="2.1">
       <Settings>
           <Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
           <Prefix Keywords1="yes" Keywords2="yes" Keywords3="yes" Keywords4="yes" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
       </Settings>
       <KeywordLists>
           <Keywords name="Comments">00// 01 02 03/* 04*/</Keywords>
           <Keywords name="Numbers, prefix1"></Keywords>
           <Keywords name="Numbers, prefix2"></Keywords>
           <Keywords name="Numbers, extras1"></Keywords>
           <Keywords name="Numbers, extras2"></Keywords>
           <Keywords name="Numbers, suffix1">;</Keywords>
           <Keywords name="Numbers, suffix2"></Keywords>
           <Keywords name="Numbers, range"></Keywords>
           <Keywords name="Operators1">- ! & ( ) * , ? [ \ ] | + < = >~</Keywords>
           <Keywords name="Operators2">op=</Keywords>
           <Keywords name="Folders in code1, open">{</Keywords>
           <Keywords name="Folders in code1, middle"></Keywords>
           <Keywords name="Folders in code1, close">} };</Keywords>
           <Keywords name="Folders in code2, open"></Keywords>
           <Keywords name="Folders in code2, middle"></Keywords>
           <Keywords name="Folders in code2, close"></Keywords>
           <Keywords name="Folders in comment, open"></Keywords>
           <Keywords name="Folders in comment, middle"></Keywords>
           <Keywords name="Folders in comment, close"></Keywords>
           <Keywords name="Keywords1">datablock function package new =  if else for while switch$ switch : case singleton default: %this true false</Keywords>
           <Keywords name="Keywords2">SPC @ NL TAB</Keywords>
           <Keywords name="Keywords3">$</Keywords>
           <Keywords name="Keywords4">% </Keywords>
           <Keywords name="Keywords5"></Keywords>
           <Keywords name="Keywords6"></Keywords>
           <Keywords name="Keywords7"></Keywords>
           <Keywords name="Keywords8"></Keywords>
           <Keywords name="Delimiters">00" 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 name="DEFAULT" fgColor="C8C8C8" bgColor="1E1E1E" fontStyle="0" nesting="0" />
           <WordsStyle name="COMMENTS" fgColor="608B4E" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="LINE COMMENTS" fgColor="727272" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="NUMBERS" fgColor="B5CEA8" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="KEYWORDS1" fgColor="569CD6" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="KEYWORDS2" fgColor="FFE9D2" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="KEYWORDS3" fgColor="BD63C5" bgColor="1E1E1E" fontName="Source Code Pro" fontStyle="1" fontSize="10" nesting="0" />
           <WordsStyle name="KEYWORDS4" fgColor="86CE71" bgColor="1E1E1E" fontName="Consolas" fontStyle="0" fontSize="10" nesting="0" />
           <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="OPERATORS" fgColor="B4B4B4" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="FOLDER IN CODE1" fgColor="FFFFFF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="DELIMITERS1" fgColor="D69D7A" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
           <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
       </Styles>
   </UserLang>
</NotepadPlus>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...