Difference between revisions of "Notepad++ Setup"

Jump to navigation Jump to search
80 bytes removed ,  Sunday at 05:19
m
Line 29: Line 29:
The best way to integrate any compiler into Notepad++ is to use the NppExec plugin. Your compile output will appear in a window in Notepad++, you can easily copy-paste from it, it will be in color, and you can double-click on any error and it will jump you right to the line and column with the error in the editor. So, it will work like many modern IDEs do when working with compilation and errors.
The best way to integrate any compiler into Notepad++ is to use the NppExec plugin. Your compile output will appear in a window in Notepad++, you can easily copy-paste from it, it will be in color, and you can double-click on any error and it will jump you right to the line and column with the error in the editor. So, it will work like many modern IDEs do when working with compilation and errors.


The best way to use Notepad++ plugins is to to use the Plugin Manager. Unfortunately, as of Notepad++ version 7.5 and later the Plugin Manager was not shipped as part of the default plugins. At that time Notepad++ added an 64-bit build, and the Plugin Manager and many other plugins were not available for x64, so they removed it. However, that problem has since been fixed, and the Plugin Manager and many of the plugins now have x64 versions. So first, check to see if you have the 32-bit or 64-bit version of Notepad++. If it is installed in C:\Program Files (x86)\Notepad++ then you have the 32-bit. You should uninstall that and install the 64-bit version. You can download it here: https://notepad-plus-plus.org/download/v7.5.4.html (make sure to get it from the [u]Download 64-bit x64[/u] section). The latest version as of this writing is 7.5.4.
The best way to use Notepad++ plugins is to to use the Plugin Manager. Unfortunately, as of Notepad++ version 7.5 and later the Plugin Manager was not shipped as part of the default plugins. At that time Notepad++ added an 64-bit build, and the Plugin Manager and many other plugins were not available for x64, so they removed it. However, that problem has since been fixed, and the Plugin Manager and many of the plugins now have x64 versions. In order to check if you have the 32-bit or 64-bit version installed, open Notepad++ and press "F1". If it shows (32-bit) you should uninstall that and install the 64-bit version. You can download the latest version here: https://notepad-plus-plus.org/downloads/ . The latest version as of this writing is 8.7.1


Then download and install the [https://github.com/bruderstein/nppPluginManager/releases/tag/v1.4.9 Plugin Manager]. The latest version of of this writing is version 1.4.9. Just download the PluginManager_v1.4.9_x64.zip, and unzip it to your C:\Program Files\Notepad++. It will add one file to the plugins directory, and one file to the updater directory.
Then download and install the [https://github.com/bruderstein/nppPluginManager/releases/tag/v1.4.9 Plugin Manager]. The latest version of of this writing is version 1.4.9. Just download the PluginManager_v1.4.9_x64.zip, and unzip it to your C:\Program Files\Notepad++. It will add one file to the plugins directory, and one file to the updater directory.


Then, launch Notepad++ and go to the Plugions->Plugin Manager->Show Plugin Manager. Find NppExec in the list and select the checkbox next to it and select Install. The latest version as of this writing was 0.5.9.9. You may need to restart Notepad++ for the Plugin to take effect.
Then, launch Notepad++ and go to the Plugins->Plugins Admin... . Under the 'Available' tab find NppExec in the list and select the checkbox next to it and select Install. The latest version as of this writing was 0.9. (0.8.8. installed). You may need to restart Notepad++ for the Plugin to take effect.


Now, select Plugins->NppExec->Execute... or press F6. Type the following into the execute dialog box, and press Save... and save it with the name "Papyrus Compiler (Debug)". NOTE: you can also add (Release) and (Release Final) versions of this exec too by adding the -r -op and -r -op -final to the end of the last command. Adjust any of the paths here to your preference, this is for Fallout 4 in the default install location with all the DLC, and working on scripts out of the Data\Scripts\Source\User directory. NOTE: this does not require any changes to the ScriptCompile.bat file (or the others), since they is not used. This invokes the compiler directly.
Now, select Plugins->NppExec->Execute... or press F6. Type the following into the execute dialog box, and press Save... and save it with the name "Papyrus Compiler (Debug)". NOTE: you can also add (Release) and (Release Final) versions of this exec too by adding the -r -op and -r -op -final to the end of the last command. Adjust any of the paths here to your preference, this is for Fallout 4 in the default install location with all the DLC, and working on scripts out of the Data\Scripts\Source\User directory. NOTE: this does not require any changes to the ScriptCompile.bat file (or the others), since they is not used. This invokes the compiler directly.
Line 81: Line 81:
%FILE%(%LINE%,%CHAR%)*                            select color red       
%FILE%(%LINE%,%CHAR%)*                            select color red       
Compiling "*"*                                    select color blue
Compiling "*"*                                    select color blue
No output generated for*                          select color red    | select italic and bold
No output generated for*                          select color dark red    | select bold
Compilation succeeded.                            select color green
Compilation succeeded.                            select color green
</source>Toggle the checkbox in front of each line to activate each filter.
</source>Toggle the checkbox in front of each line to activate each filter.
8

edits

Navigation menu