Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Notepad++ to execute with Processing and display errors from processing

This is the IDE that we are using in my course http://processing.org/ However it's very buggy with my computer and I love to use Notepad++

How can I make it so that when I press execute in Notepad++, it will compile the file in processing automatically and if there's any errors, it will be ported into Notepad++ showing the line with the error and error message?

like image 281
user1766555 Avatar asked Jan 28 '26 01:01

user1766555


1 Answers

use nppExec plugin for notepad++, install it from [notepad++: plugins -> plugin manager -> show plugin manager]

[notepad++: plugins -> nppexec -> console output], set both to utf-8 (optional tbh, but I use it for python)

[notepad++: plugins -> nppexec -> execute ] paste in the following exactly, but change the path at the start of the line to point to your processing directory

"D:\processing-2.0\processing-java.exe" --run --force --sketch="$(CURRENT_DIRECTORY)" --output="$(CURRENT_DIRECTORY)/ouput"

then save it as a macro

[notepad++: plugins -> nppexec -> advanced options ], use the associate script dropdown to add a menu item, with the 'add/modify' button

click the checkbox at the top that says 'place to the macros submenu' (optional probably)

[notepad++: settings -> shortcut mapper]

look in 'plugins' section

you'll find an entry for the menu item you just created, map a key to it (eg alt-f5)

There is a nice language def for syntax highlighting processing on http://intuitionlogic.com/post/2011/03/15/A-Notepad++-language-definition-file-for-ProcessingProcessingjs.aspx

Save it as .xml then use [language -> Define]

like image 139
FLong Avatar answered Jan 31 '26 07:01

FLong