Thursday, July 15, 2010

Run JavaScript from SciTE

SciTE is a fantastic text editor. I used it for small and fast prototyping of code.

Lately I had some important project to code (diagramo.com) and I needed to test some JavaScript codes and I thought it might be handy to run the code from within the SciTE.

Here is the solution:
1. First you need to install the latest Java SDK and after install see that jrunscript (JavaScript interpreter - based on Rhino) is in you path

2. Go to Scite's folder and open cpp.properties and add the following line:
command.go.*.js=jrunscript $(FileNameExt)

Done

Now every time you press F5 in SciTE your code will run be executed and the results displayed in the Output window.

Yes!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.