new TorqueScript Syntax for NotePad++ (noemen)

3 posts Page 1 of 1
noemen
Posts: 104
Joined: Tue May 29, 2018 3:46 pm
 
  by noemen » Mon Sep 14, 2020 11:22 am
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.

Code: Select all

<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">- ! &amp; ( ) * , ? [ \ ] | + &lt; = &gt;~</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&quot; 01 02&quot; 03&apos; 04 05&apos; 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>
bsisko
Posts: 87
Joined: Mon Jun 19, 2017 7:28 pm
by bsisko » Fri Sep 18, 2020 3:14 am
Noeman,

Thanks, I'm sure that a lot of Torque users will appreciate you!
noemen
Posts: 104
Joined: Tue May 29, 2018 3:46 pm
 
by noemen » Mon Sep 21, 2020 1:56 pm
@
User avatar
bsisko

Thank you very much.
Whenever possible I will share some resource.
3 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest