Indenting by spaces using HTMLTidy in Notepad++
-
05-07-2019 - |
Question
How do I make it so that instead of indenting my elements by multiples of 2 spaces (when formatting without wrapping is selected), HTMLTidy indents them by multiples of tabs (4 spaces long but only 1 byte in size)?
Solution
The HTML Tidy docs say that tidy never outputs tabs. But, since you're in Notepad++, you can use TextFX Edit -> Leading space to tabs
to convert the spaces that HTMLTidy gives you into tabs. Just make sure that indent-spaces
is set to 4
in your config file.
The location of your config file will vary depending on how you installed notepad++ and what version you have, but its path will probably look like one of these
C:\Program Files\Notepad++\plugins\NPPTextFX\tidycfg.ini
C:\Program Files\Notepad++\plugins\Config\tidy\tidycfg.ini
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow