JS Beautifier

JS Beautifier is a scripting plugin, based on scripts from jsbeautifier.org and basically doing same things as tool on mentioned web site:

  • Beautify and Format source code in JavaScript, JSON, HTML or CSS using configurable rules
  • Unpacks/Deobfuscates JavaScript code

So, if you need handy way to format JS/HTML code of your web sites source code in the text editor, the plugin will very helpful. JS Beautifer -> Format All / SelectionAfter the installation the plug-in will replace standard formatting logic for such languages as JavaScript / HTML / CSS and will be executed automatically if you call following commands or functions:

  • Command Edit.FormatAll → menu Format → Format All
  • Command Edit.FormatSelection → menu Format → Format Selection
  • applied to pasted code, if Format after every paste is enabled in Tools→Options→Formatting→Smart Helpers
  • applied to code templates if mentioned flag in settings will be set

Formatting rules can be customized in dedicated settings page located in Tools→Plugins→JS Beautifier. JS Beautifier settings In addition to that new command Unpack JavaScript is added to Format menu (after Delete Duplicates). Corresponding command name is JSBeautifier.Unpack. The command tries to deobfuscate java script code, packed by some common algorithms.

You can install plugin directly from HippoEDIT Plugins options page (Tools→Options→Plugins), if you have Online Repository activated or by download plugin bundle directly from this page and open it with HippoEDIT.

For more information go to jsbeautifier.org.
For details about integration, you can ask on forum.