6

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)?

Dan Atkinson
  • 11,391
  • 14
  • 81
  • 114
Max
  • 115
  • 1
  • 3
  • 6

1 Answers1

8

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
Rob
  • 2,148
  • 13
  • 17
  • I think this worked. I didn't have to change any configuration files. But just in case, the configuration file you are talking about, is it the same one the above poster is talking about? I did manage to find that file. Thank you very much for the quick answer. – Max Jul 29 '09 at 15:54
  • Yes, I was referring to the same file as the other poster, but it looks like he deleted his post. I edited my post to include the path to the file. – Rob Jul 29 '09 at 16:42
  • Oh ok. Thank you very much for the answers. They were very clear. Thank you so much. – Max Jul 29 '09 at 17:46