Javascript Beautifier & JSLint Integration with Editplus

This is for those who are using a IDE without js format feature by default like Editplus.

First, I want to share you a javascript beautifier:, where you can paste your js code and then beautify with some customizable options.

Also the format function is provided by various languages / library on the website. We can integrate the js format function with IDE easily. Here are steps (take Editplus as an example):

1. save the attached file and rename to .js
(1.5. view the js code in the file and customize it by your self)

2. Editplus -> Tools -> Configure User Tools

3. Tools -> User tools -> select a group -> Add Tool

4. The command is “WScript.exe” + the path of beautify.js. In my example it’s WScript.ext “E:\Software\EditPlus\js_beautify.js”, Argument is “$(CurSel)”, which means current selected text. Don’t forget check “Run as text filter”. Click OK.

5. try it: select a code block, click “Ctrl + 1” (maybe different from groups), it’s done!

Tip: checking in a formatted code may make a huge diff. So please be careful on this at some time of the project like CCRB.

It’s almost the same to setup JSLint for your editplus, just look at the configure screen:

The difference is you need check Capture output instead of “Run as text filter”, also you need setup a Ouput Pattern (for JSLint result display), the pattern I’m using is ^.+ >>>in \[(.+)\] \[line\: ([0-9]+)\,character\: ([0-9]+)\], you can also change it as you prefer.
After invoke this on a js file, JSLint results will display in the editplus console. Double click on the record will take you to the row.

More: you can actually create more extensions for you IDE and svn with javascript. This will obviously save your time and help ensure the code quality.

This entry was written by Wang Xiaoxing , posted on Thursday May 27 2010at 11:05 am , filed under Editplus, Javascript and tagged , , , . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

18 Responses to “Javascript Beautifier & JSLint Integration with Editplus”

  • Benny says:

    Reading done, a non-javascripter floating away…^_-

  • linux says:

    Very nice post. I just stumbled upon your weblog and wished to mention that I’ve really enjoyed surfing around your weblog posts. After all I will be subscribing to your feed and I’m hoping you write again very soon!

  • Hi just wanted to give you a brief heads up and let you know a few of the pictures aren’t loading
    correctly. I’m not sure why but I think its a linking
    issue. I’ve tried it in two different internet browsers and both show the same results.

  • Glen says:

    Having read this I thought it was very enlightening. I appreciate you taking the time and effort to put this short article together. I once again find myself personally spending way too much time both reading and commenting. But so what, it was still worthwhile!

  • Hello everybody, here every person is sharing these know-how, so it’s good to
    read this blog, and I used to pay a quick visit this weblog
    every day.

  • I’m not that much of a internet reader to be honest but
    your sites really nice, keep it up! I’ll go ahead and bookmark your
    site to come back down the road. All the best

  • If you are going for most excellent contents like me, simply
    go to see this web site daily since it offers feature contents, thanks

    • Priya says:

      Hey great weblog, just lonikog around some blogs, appears a fairly good platform you’re making use of. I’m presently using WordPress for a few of my websites but lonikog to change one of them above to a platform similar to yours as a trial run. Anything in specific you’d recommend about it?

  • Thank you for any other informative website. The place else could I get that
    type of info written in such an ideal manner? I’ve a project that I’m just now working on, and I have been at the glance out for such info.

  • Hi there, everything is going nicely here and ofcourse every one is sharing information, that’s really
    good, keep up writing.

  • My family all the time say that I am killing my time here at web,
    but I know I am getting familiarity all the time by reading such pleasant articles.

  • paragraphe l’écriture est aussi un l’amusant, si vous connaît après que qui vous pouvez écrire autrement si pas c’est difficult Pour écrire.
    d’en haut|salut de bonjour tout le monde, c’est mon premier
    le voir à ceci le site, et post est in fait fructueux conçu de me, maintenir poster these types de Hello d’en haut d’en haut|salut de vous Fait a un spam
    le problème sur ce site; je suis aussi blogueur, et j’étais demander de de votre situation ; beaucoup d’entre a
    créé quelque agréable methods et nous comptons sur trade methods avec autre folks,
    pourquoi pas me tire un e-mail s’interested. de twenty, juste si elle peut
    être une sensation de youtube. Mon pOMME est maintenant détruit et elle a 83
    vues. Je sais que ceci est totally du sujet mais j’ai dû le partager avec quelqu’un !

  • Like This says:

    I don’t even know how I stopped up here, but I believed this post
    was good. I don’t recognise who you’re but certainly you are going to a well-known blogger for
    those who aren’t already. Cheers!

  • La Pasión refiere en el tarot egipcio de forma directa a los instintos primitivos y a la energía primaria y sexual.

  • Yet online pharmacy affiliate program (http://www.naymz.Com) affiliates understand that it’s the drug store associate programs that are paying the major money.

  • Alphonse says:

    The startup supplies pre-packaged Sets that have actually been assembled by popular developers
    on Pinterest.

  • Celles-ci peuvent d’ailleurs être prises ailleurs que dans l’établissement bancaire qui va consentir le prêt immobilier.

  • lebenshilfe says:

    Future plans include a recording in which individual Mutter
    Virtuosi will ‘get a chance to shine’ in each movement of the Bach Concerto for Two
    Violins. Just as she learned from ‘unforgettable mentors’ such as Herbert von Karajan, she enjoys seeing her young charges grow,
    musically and otherwise. ‘Did you enjoy our performance of #Daylight on #The – Voice.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>