Visual Studio Code nwscript syntax highlighting
Glorwinger
Member Posts: 41
For those that use Visual Studio Code (A very nice code editor that supports Windows, Linux, and MacOS) I grabbed the Sublime nwscript syntax highlighting and pushed a syntax extension you can add. I also pushed the code here and if anyone wants to contribute / add compiler commands etc. please do so. https://code.nwnx.io/Glorwinger/vscode-nwscript
5
Comments
ConTEXT
Crimson Editor
Notepad++
Programmer's Notepad
PSPad
SciTE
TextPad
One thing to note is that this package, as it ships, is broken as far as Notepad++ is concerned. Fortunately it is very easily fixed. What happened is that a few months after Fancy Colours was released the people who look after npp changed the format of the data files used. To get it working again just do this -
Download Fancy Colours and extract the package to a temporary folder. Open notepad++ as an administrator. Open the language menu item and scroll all the way to the bottom. Click on Define your language. This opens a dialogue. Click the import button and navigate to your temporary folder. Select the first xml file (ignore the ones in the subfolders) and load it. That's it you're done. Now you will have an option in languages right at the bottom marked nwscript.
TR
- When the toolset open the module it unpacks everything into a temp folder - you can edit compile the resave the module
- There are various module unpackers and packers that will extract the module
Some module and PW developers use the unpacked module with a source code control system to manage changes and ensure things stay consistent.If you are interested in how to specifically I can provide more details if you have questions.
@Glorwinger Could You please rehost the source code? I'd very much like to port your VSCode extension to Visual Studio IDE.
If the code for the vscode extension could be be rehosted and open sourced I would like to try to help expand on it - hopefully it can get some IntelliSense and a debugger shim.
Or has someone already done that stuff for some other editor?
TR
It's hosted here: https://gitlab.com/glorwinger/vscode-nwscript
Thanks!