Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== JS Beautifier ====== JS Beautifier is a scripting plugin, based on scripts from [[http://www.jsbeautifier.org|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. {{ :plugins:jsbeautifier_editor.png?direct&250|JS Beautifer -> Format All / Selection}}After 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. {{ :plugins:js-beautifier.png?direct&300|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. ===== Install ===== You can install plugin directly from HippoEDIT Plugins options page (//Tools->Options->Plugins//), if you have [[online-repository:start|Online Repository]] activated or by download plugin [[installation:bundle|bundle]] directly from this page and open it with HippoEDIT. * [[http://hippoedit.com/get_file.php?id=u32-file|Download and Install HippoEDIT (if not installed already)]] * [[http://www.hippoedit.com/api/get_bundle.php?type=plugin&id=5EF53793-74E5-439D-B200-5500076E6FDA|Download and Install JS Beautifier for HippoEDIT]] ===== Supported syntaxes ===== [[http://js-editor.hippoedit.com/|Java Script]], [[http://css-editor.hippoedit.com/|CSS]], [[http://json-editor.hippoedit.com/|JSON]], [[http://html-editor.hippoedit.com/|HTML]] ===== More ===== For more information go to [[http://www.jsbeautifier.org|jsbeautifier.org]].\\ For details about integration, you can ask on [[http://forum.hippoedit.com/add-ons-tools-plugins/js-beautifier/|forum]]. #plugin