You can use Notepad++ for creating/editing Nuclear Throne Together mods.
Notepad++ is fairly lightweight code editor for Windows, which supports syntax highlighting, code folding, and user-defined language definitions.
While it does not offer auto-completion or other advanced features, it is a decent option for working with NTT.
This is a page about an "official" syntax highlighting file for it:
- Download the scheme (v9879).
- Unzip somewhere.
- Pick menu "Language" - "Define your language" (on the bottom).
- A window or a docked panel should appear. There, click "Import" on top-left, and pick your unzipped XML file.
- Restart Notepad++
Now, whenever you open a GML file, the variables/functions/constants in it will be highlighted accordingly.
When there are additions to NTT's scripting API, you might want to keep your configuration up-to-date.
That is done as following:
/gmlapiin chat in NTT.
This will generate a number of files in
%LOCALAPPDATA%/nuclearthrone/apidirectory (you can paste that path into Explorer' "address bar").
Open all of the files starting with "raw-". Can also do this in Notepad++ itself.
Pick menu "Language" - "Define your language" in Notepad++.
Pick "GameMakerLang" in the dropdown on top left.
Pick "Keywords lists" tab.
Erase the "2nd group" field' contents (Right-click - "Select all" - Backspace), paste
raw-functions.gml' contents into it.
raw-constants.gml' contents into "3rd group" field.
raw-variables.gml' contents into "4rd group" field.
raw-objects.gml' contents into "5th group" field.
raw-sprites.gml' contents into "6th group" field.
raw-sounds.gml' contents into "7th group" field.
Restart Notepad++ to ensure that changes are flushed.
If all was done correctly, the new entries will highlight accordingly, most noticeable on the
raw- files themselves (which would show up entirely in the according color).
- If you are using a non-standard editor color scheme, you can edit the colors via the same "User defined languages" popup.