Wintermute Engine Forum

Wintermute Engine => Scripts, plugins, utilities, goodies => Topic started by: greg on January 26, 2008, 04:42:30 PM

Title: Using Notepad++ with WME
Post 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:
 
Code: [Select]
::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.

Title: Re: Using Notepad++ with WME
Post by: Mnemonic on January 26, 2008, 06:04:54 PM
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 :)
Title: Re: Using Notepad++ with WME
Post by: odnorf on August 31, 2008, 03:05:57 PM
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.
Title: Re: Using Notepad++ with WME
Post by: Sothoth on July 26, 2013, 10:17:46 AM
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!
Title: Re: Using Notepad++ with WME
Post by: odnorf on July 26, 2013, 11:38:37 AM
I don't have that file anymore. :( But even if I had it it would be very outdated with lots of missing keywords.
Title: Re: Using Notepad++ with WME
Post by: Sothoth on July 26, 2013, 01:47:20 PM
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!