Friday, June 4, 2010

Linking NotePad++ To Compiler

In the following tutorial we will go through how to use Notepad++ as a IDE for Perl (or –Theoretically- any other programming language with a compiler/interpreter executable )

In this tutorial you’ll need to have
  • NotePad++
  • NppExec plug-in, it’s usually installed by default with Notepad++

First, open Notepad++ , go to Plugins > NppExec > Execute


window will popup with an empty textbox, copy and paste the following script into the box

press save and you’ll have something like the following picture:

put a name for your script in the box (on the bottom left), and press save.

Now , test your script by pressing Shift+F6, a console window should shpw up in the buttom of the screen showing you the command prompt result

in order to make that complete, we need to add the CGI extension to Notepad++ so when you open any file the program instantiously colorize the syntax without forcing you to choose the language from the language menu
you’ll need to edit the lang.xml file found in NOTEPAD++ DIRECTORY/langs.xml
you’ll need to edit this file with some editors, for now i’ll just open it with IE to show you where you’re supposed to edit

of course I've already added the CGI extension as you can see in the picture changing the line

to be

save your file and test the Notepad.
i hope you’ve enjoyed reading this tutorial, till we meet cyberians, bye

No comments:

Post a Comment