I got it to work, using all the things listed in this thread:
I use this .bat file
Code: Select all
@echo off
cd D:\Program Files\Love 0.9.1\
:there
if "%1" neq "" goto here
call love.exe
goto end
:here
call love.exe %1
goto end
:end
exit
And I add this line at the beginning of main.lua
I comment this line on conf.lua
Then I created a command in Plugins > NppExec > Execute...
Code: Select all
NPP_SAVEALL
"D:\LOVE\run.bat" "$(CURRENT_DIRECTORY)"
I named it Love and saved it
Then in Plugins > NppExec > Advanced Options
In the Menu Item section I added Love to the menu
Then in Configuration > Shortcuts I added a shortcut to this Menu Item (Love) to trigger it with Ctrl + L
I changed the colors to the following:
Code: Select all
TextColorNormal E0 E2 E4
TextColorError EC 76 00
TextColorMessage 67 8C B1
BackgroundColor 29 31 34
I have enabled the filters in Plugin > NppExec > Console Output Filters...
And in the highlight tab I used the following filters
Code: Select all
Error: %FILE%:%LINE% * 0xEC 0x76 0x00 B
*[*]:* 0xEC 0x76 0x00 I
*%FILE%:%LINE% * 0xEC 0x76 0x00 B
stack*traceback:* 0xEC 0x76 0x00 U
When there is an error you can double-click on the line that points you to the error and Notepad++ will take you there