Using Notepad Plus Plus as a script editor
Notepad++ is a powerful text editor based on Scintilla (which is where UniSciTE is also based from). It is available only in Windows.
- it can manage more than ten text files opened simultaneously
- customizable color scheme
- when you double click on a Unity error in the Console, Notepad++ opens the corresponding file but doesn't go to the specified line number
- Notepad++ can be found in http://notepad-plus.sourceforge.net/uk/site.htm. Download and install.
- Change your External Script Editor to Notepad++ (In Unity, Edit> Preferences > General)
- Unity should now open Notepad++ whenever you double-click a script (or any text file actually).
How to add searching of Unity Documentation within Notepad++
- Download the Language Help Plugin via the Plugin Manager: Plugins > Plugin Manager > Show Plugin Manager. Then choose "Language Help" from the list, and click Install.
- Go to Plugins > Language Help > Options...
- Click Add and put these values
- Name: Unity
- Extension List: js
- Extended help file path: http://unity3d.com/support/documentation/ScriptReference/30_search.html?q=$word$
Now whenever you press ctrl+f1 while your cursor is on a word, it will search that word in the Unity documentation. (You can change the key binding via Settings > Shortcut Mapper)
How to enable highlighting of unity "keywords"
- Open "C:\Program Files\Unity\Editor\Data\Tools\UniSciTE\unitykeywords.properties" This text file contains all the unity keywords.
- Open "C:\Program Files\Notepad++\stylers.xml" (If you're using a custom theme, open C:\Program Files\Notepad++\themes and open the theme XML file you are using instead.)
- Find the coressponding: <WordsStyle name="KEYWORD" styleID="47" fgColor="000080" bgColor="F2F4FF" fontName="" fontStyle="3" fontSize="" keywordClass="instre1">
- Insert all the unity keywords (found from the unitykeywords.properties you opened earlier) inside that <WordsStyle name="KEYWORD"> tag
- Save it. Close and open Notepad++. It should highlight the Unity keywords now.
How to add Intellisense (called Auto-Completion in Notepad++) for Unityscript
- Turn on Auto-Completion by going to: Settings > Preferences > Backup/Auto-Completion. Check "Function parameters hint on input"
- Close and open Notepad++. A function tooltip should now appear whenever you type in an open parenthesis after a Unity function.
Note: The UnityJS_to_Npp.txt is created from the file found as "C:\Program Files\Unity\Editor\Data\Tools\UniSciTE\UnityJS.api", converting it using a program I made (http://anomalousunderdog.webs.com/UnityProjectUploads/UnityJSapi_to_Npp.py). If ever the UnityJS.api changes (in case of a Unity update), just run the python script.