2013年3月2日 星期六

Notepad++ Plugins - Browse /PyNPP at SourceForge.net


Notepad++ Plugins - Browse /PyNPP at SourceForge.net:

想在Notepad++執行Python Code,請用PyNPP取代NppExec會比較好用。
如果執意要用NppExec的話,請參考以下在NppExec中可run的script:

NPP_SAVE
CD $(CURRENT_DIRECTORY)
SET python = C:\Python27_x86\python.exe
"$(python)" "$(FULL_CURRENT_PATH)"
UNSET python


如果想要即時print且在python 3.6上,可以使用以下:

NPP_SAVE
CD $(CURRENT_DIRECTORY)
SET python = D:\Program Files\Python36\python.exe
"$(python)" -u "$(FULL_CURRENT_PATH)"
UNSET python


Note: unbuffered mode. This is done with the -u flag.

沒有留言:

張貼留言

Lean 4 極簡教學 (Using VS Code on macOS)

 1. Install Lean Environment: https://lean-lang.org/install/ 試著完Step one, two, three 2. 在VS code下,建一新的project: 取名Hello_World 3. 嘗試執行Main.lea...