Adding a Run with Python item to the Macros menu in Notepad++., using the NppExec plugin.
This is the code for NppExec (note the quotes and .exe extension):
npp_save
cd "$(CURRENT_DIRECTORY)"
python.exe "$(FILE_NAME)"
Once you have filled in the Exec code, you can run it with [OK], and you can go back to this with Plugins - NppExec - Execute.
Here we save it so it can be added to the Macro menu.
Python and Notepadd++ are here run from AppsAnywhere, but local installations will work the same (provided Python is in the path, alternatively you can put the full path to python.exe). Once Python is loaded, you don't need the IDLE window here.
The code is from the support site: https://support.ecs.westminster.ac.uk...
На этой странице сайта вы можете посмотреть видео онлайн Running Python Code with Notepad++ - using NppExec длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Alan Wood 07 Май 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 4,127 раз и оно понравилось 31 зрителям. Приятного просмотра!