2.1.1. 방법 1 ¶
{{|notepad++ 메뉴 > 실행 > 실행 > C:\Python26\python26.exe $(FULL_CURRENT_PATH) 입력 > 실행|}}
이 때 주의해야 할 점은 도스 커맨드창을 계속 유지하기 위한 코드가 없다면 실행하자마자 종료되는 허무함이 맛볼 수 있다.
raw_input('press enter to continue...')집에서는 잘 됐는데, 학교에서는 여전히 커맨드창이 바로 종료되는 문제가 발생한다. 대체 뭐가 문제인가?
2.1.2. 방법 2 ¶
방법 2 출처
{{|
There is a simple way to do it.
In the Run menu, you can see options like "Lunch in firefox" and more.
These options are written in a file called shortcuts.xml, located in the folder where you installed NP++.
Open this file, and inside <UserDefinedCommands> you'll find this row:
Expand|Select|Wrap|Line Numbers
Expand|Select|Wrap|Line Numbers
{{|
There is a simple way to do it.
In the Run menu, you can see options like "Lunch in firefox" and more.
These options are written in a file called shortcuts.xml, located in the folder where you installed NP++.
Open this file, and inside <UserDefinedCommands> you'll find this row:
Expand|Select|Wrap|Line Numbers
<Command name="launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox "$(FULL_CURRENT_PATH)"</Command>All you need to do is copy this line and change some things. Then you'll have something like this:
Expand|Select|Wrap|Line Numbers
<Command name="Run with Python" Ctrl="no" Alt="no" Shift="yes" Key="112">python "$(FULL_CURRENT_PATH)"</Command>(I chose Shift+F1, but you can choose any keys you like.)
Reopen NP++, and now it's easy and nice to run any python file strait from the editor.
More information on things like this in NP++: http://notepad-plus.wiki.sourceforge.net/Run |}}
More information on things like this in NP++: http://notepad-plus.wiki.sourceforge.net/Run |}}