Frictional Games Forum (read-only)
New userDefinedLang for notepad++ - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: New userDefinedLang for notepad++ (/thread-7801.html)



New userDefinedLang for notepad++ - Apjjm - 05-04-2011

The current userDefinedLang file for notepad++ was missing a few things, and I added them as my new mod uses classes, and decided i should stick the rest of the keywords in too. Also regions are a massive help Wink. Below are the additions to the valid keywords list that are now colourised:
Code:
int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 in out inout super this import from is xor enum interface typedef funcdef class private null cast
..And probably a few others..

Also defined folding regions to make navigating large scripts easier, which can be used as follows:
Code:
//open Region Name

void hugeFunction() {
...
}
void MassiveFunction() {
...
}

//close
Only took a small amount of time to put together, but it should save you the time changing settings stuff in notepad++ if you plan on having large or complex scripts.

Download link: http://www.mediafire.com/?4smc0su16y2vjit
For installation instructions see the wiki here.


RE: New userDefinedLang for notepad++ - MrBigzy - 05-04-2011

Notepad++ didn't have all that? Weird. :B


RE: New userDefinedLang for notepad++ - Apjjm - 05-04-2011

(05-04-2011, 03:26 AM)MrBigzy Wrote: Notepad++ didn't have all that? Weird. :B

Notepad++ does have all that. The HPS user defined language for notepad++ on the wiki doesn't - Many keywords are not highlighted, and folding regions are not defined. I use the non-colourised keywords in my scripts and wanted regions defined - so i added them. I guess a few people may have done this as it doesn't really take that long to change if you know what the missing keywords are; I figured I'd save others (especially new scripters) the effort and upload an updated file though.