HTML / Javascript auto-indentation in Notepad ++

So, it seems that this problem was raised earlier, a couple of years ago, but none of the answers seemed to work on the newest version of Notepad ++ 6.2.2

I also tried using the NppAutoIndent plugin to no avail.

+6
source share
2 answers

Try the Notepad plugin, just go to settings, then click on "Settings", then click on "Miscellaneous", then turn off "Clickable Link Settings" to get rid of the crash in the hope of scrolling.

Here is the plugin info if you need it

General plugin (correct newline processing, comments, indentation, etc.)

Implemented so far:

  • Own new line inside CommentDo // DocBlock for C, C ++, Javascript, PHP
  • Corresponding new line for # comment in Ruby
  • Indent after opening braces for C-like languages, CSS
    and the right indent to close the brace
  • Delete current row retaining column
  • Cancel closed tab
  • Switch tabs with ALT + LEFT / RIGHT
  • Choosing a wrapper with an Open / Close tag
  • Url Encoding / Decoding Selection
  • Auto-wrap nested script tags for ruby ​​and php (<% |
  • Column line
  • Indent after an open tag - XML, HTML and PHP
  • Close last open tag
  • Standalone inside CommentDoc / DocBlock and # Comment
  • Indent after instructions for Ruby-module | class | def | do | if | else | elsif | private
  • End Mark for Ruby
  • Keyword Autocomplete CommentDoc / DocBlock
  • Peek CSS hex colors
  • Scrolling end of file
  • Convert leading TABS to spaces and backslashes
  • Insert indents
  • Double-click the edit tag Author: jvdanilo Source: https://github.com/jvdanilo/NotepadSharp Homepage: https://github.com/jvdanilo/NotepadSharp
+3
source

For javascript you can try the JsMin plugin (JsTool). It has a jsformatter function.

+4
source

All Articles