Ezhil-Language-Foundation / Ezhil-Lang

எழில் - ஒரு தமிழ் நிரலாக்க மொழி; தமிழ் மாணவர்களுக்கு இது முதல்முறை கணிப்பொறி நிரல் ஏழுத உதவும் (Ezhil, is a fun Tamil programming language for K-12).
http://ezhillang.org/
GNU General Public License v3.0
170 stars 46 forks source link

எழில் மொழி கோடை Notepad++ இல் இருந்து இயக்குக #111

Open arcturusannamalai opened 8 years ago

arcturusannamalai commented 8 years ago

Notepad++ வசதி பட்டன் எழில் மொழி கோடை இயக்குக. Ref: http://stackoverflow.com/questions/1702586/how-to-execute-a-python-file-in-notepad

C:\Python26\python.exe "$(FULL_CURRENT_PATH)"

Ref: http://it-ride.blogspot.com/2009/08/notepad-and-python.html

Notepad++ and Python
I know, I know, I'm using Windows. But it's just temporary, I just felt like playing some video games. Anyway, Notepad++ is awesome, I must say. And I wanted to use it for Python developing (I hate that IDLE Python comes with). To set up Notepad++ for Python developing I had to:
Create a batch script that would run a python script and then wait for a key (so that the terminal (or, command line) doesn't disappear);
Configure a shortcut in Notepad++ to run that script with the current file as parameter.
First things first: the batch script. Pretty basic, I just looked at a couple of Wikipedia articles and another one about using arguments in batch scripts:
@ECHO OFF
C:\Python26\python.exe "%1"
echo.
PAUSE
@ECHO ON
Then, in Notepad++, I went to Run → Run..., type in C:\Python26\python.bat "$(FULL_CURRENT_PATH)", then Save... and assign a shortcut. Press that shortcut now with a python file opened and boom goes the dynamite. Enjoy :)