Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 1.95 KB

README.md

File metadata and controls

34 lines (30 loc) · 1.95 KB

Notepad++ HTML/JS Formater Plugin

  • Notepad++ HTML/JS Formater Plugin for jN Plugin (JScript plugin, originaly 'npp scripting')
  • Proudly based on sources from http://jsbeautifier.org/

Installation

  • Instal plugin jN (Notepad++ Javascript Scripting
    • for Notepad++ v7.x and newer - install plugin via Notepad++ plugins manager
      • latest tested version: jN Notepad++ Plugin 2.2.185.5
      • the newest plugin version has filesystem structure:
        • C:\Program Files (x86)\Notepad++\plugins\jN\jN.dll
        • C:\Program Files (x86)\Notepad++\plugins\jN\jN\...
    • for older Notepad++ v6.x and older - install plugin manually from google code archive
  • Place HTML JS Formater.js file into directory:
    • for Notepad++ v7.x and newer:
      • Notepad++ x64: C:\Program Files\Notepad++\plugins\jN\jN\includes\HTML JS Formater.js
      • Notepad++ x86: C:\Program Files (x86)\Notepad++\plugins\jN\jN\includes\HTML JS Formater.js
    • for Notepad++ v6.x and older:
      • Windows x64: C:\Program Files\Notepad++\plugins\jN\includes\HTML JS Formater.js
      • Windows x86: C:\Program Files (x86)\Notepad++\plugins\jN\includes\HTML JS Formater.js
  • Restart Notepad++
  • Select all (press CTRL + A)
  • Format code (press CTRL + SHIFT + J or Main Menu -> HTML/JS Formater -> Format HTML/JS)

HTML/JS code before:

Printscreen

Main Menu > HTML/JS Formater > Format HTML/JS > Click (or CTRL + SHIFT + J)

HTML/JS code after:

Printscreen