Asked 8 years ago
9 Sep 2016
Views 11955
david

david posted

how to format JS code in notepad++ ?

using Notepad++ to code my website . but i have some minified version of js and i want to debug it well but i dont find the formatter of JS code at Notepad++


$(document).ready(function () {function a() { alert('some code here'); } });


and want to format it so


$(document).ready(function () {
	function a() {
		alert('some code here');
	}
});
kiran

kiran
answered Nov 30 '-1 00:00

By JSTool

Ctrl+Alt+M Or go to Plugins -> JSTool -> JSFormat

if you dont find JSTool at under Plugins menu than first install JSTool by Plugin Manager , for that
go to Plugins -> Plugin Manager -> Show Plugin Manager

at aviliable tab find the JSTool and checked it and click on Install button , after install . restart the Notepad++ and follow above step again .

hope it help Thanks !!!


work for me , Thanks - david  
Sep 9 '16 10:42
not able to install.pls help - angeo  
Sep 9 '16 10:50
if you cant able to install by Plugin Manager . than you can do it manually , go to the https://sourceforge.net/projects/jsminnpp/ and download latest zip of plugin and extract it and you will find a JSMinNPP.dll file , and now go to installed folder of Notepad++ , in my case ( C:Program Files (x86)Notepad++) and go to plugins folder and copy JSMinNPP.dll file - kiran  
Sep 9 '16 10:55
Post Answer