Wintermute Engine Forum
Wintermute Engine => Scripts, plugins, utilities, goodies => Topic started by: greg on January 26, 2008, 04:42:30 PM
-
This morning, I spent a couple hours configuring Notepad++ to work with WME. I'm posting the instructions here so that others don't need to duplicate my effort.
ABOUT NOTEPAD++
Notepad++ is a free, powerful text editor available from http://notepad-plus.sourceforge.net/uk/site.htm. Compared to Crimson Editor (which I was using previously), here are its advantages and disadvantages.
Pros: You can rearrange tabs and collapse bracket pairs within a script. It's open source and still being maintained.
Cons: You can't assign shortcut keys to user-defined commands (i.e. checking WME syntax).
CONFIGURING NOTEPAD++
The following instructions assume that Notepad++ is installed in C:\Program Files\Notepad++:
1. Console. In C:\Program Files\Notepad++\plugins\Config\NppExec.ini, change "Visible=0" to "Visible=1".
**This will cause the console to show automatically when you open Notepad++.
2. Highlighting and Formatting. Select Settings > Styler Configurator.
a. Select Enable Global Font and Enable Global Font Size.
**This will cause Notepad++ to display the entire script (even comments) in the same-size fixed-width font.
b. Under Language, select Java. Add script to the User ext field.
**This will cause Notepad++ to automatically highlight .script files as if they were written in Java.
3. Syntax checking. In C:\Program Files\Notepad++\plugins\Config\npes_saved.txt, add the following:
::wme_check_syntax
"C:\Program Files\WME DevKit\wme_comp.exe" -project "C:\Program Files\WME DevKit\projects\[project]\[project].wpr" -script "$(FULL_CURRENT_PATH)"
Where C:\Program Files\WME DevKit\projects\[project]\[project].wpr is the path to your WME project file.
**Now, to check the syntax of a script, press F6, change the dropdown menu to wme_check_syntax, and press OK.
-
Thanks, greg. I just wanted to mention that the -project parameter is now optional. The script compiler tries to find the project automatically based on the script location (and usually succeeds :)
-
Kind old thread but still relevant.
For syntax highlighting you can use this file (http://master.math.upatras.gr/~odnorf/misc_files/wme_syntax_notepadplusplus.zip) I created today because I was bored. ::slug ::beer Just unzip it in the settings folder of your notepad++ installation (it should be %appdata%\notepad++) and you'll have a "WME script" option in the language selection.
-
Kind old thread but still relevant.
For syntax highlighting you can use this file (http://master.math.upatras.gr/~odnorf/misc_files/wme_syntax_notepadplusplus.zip) I created today because I was bored. ::slug ::beer Just unzip it in the settings folder of your notepad++ installation (it should be %appdata%\notepad++) and you'll have a "WME script" option in the language selection.
Sorry for the thread archeology, but I'm interested in using Notepad++ with WME, and the above file isn't online anymore. Does anyone has a copy?
Thank you very much in advance!
-
I don't have that file anymore. :( But even if I had it it would be very outdated with lots of missing keywords.
-
I don't have that file anymore. :( But even if I had it it would be very outdated with lots of missing keywords.
Oh, nevermind... I'll continue with the old good SciTE ;).
Thank you very much, anyway!