Questions tagged [htmltidy]

HTML Tidy is an html formatter used to pretty print existing markup.

168 questions
99
votes
7 answers

Notepad++ htmltidy - unable to find libtidy.dll

I'm on a relatively new Windows 7 machine and in Notepad++ the TextFX HTMLTidy doesn't work. It says "Unable to find libTidy.dll in the system path or C:\program files (x86)\Notepad++\plugins\Config\tidy\libTidy.dll". Some links suggest moving the…
Rory
  • 40,559
  • 52
  • 175
  • 261
49
votes
9 answers

Notepad++ HTML Tidy

Is HTML Tidy for Notepad++ broken? None of the commands except Tidy (the first one) work. They don't show any message, even with all text selected. I really need Tidy to work, or is it just a limitation of the newest version of N++, or lack of…
Aethex
  • 1,502
  • 2
  • 16
  • 27
42
votes
7 answers

Use HTML Tidy to just indent HTML code?

Is it possible to use HTML Tidy to just indent HTML code? Sample Code
23
votes
4 answers

Is there an alternative to HTML Tidy?

I have embedded HTML Tidy in my application to clean incoming HTML. But Tidy has a huge amount of bugs and fixing them directly in the source is my worst nightmare. Tidy source code is an unreadable abomination. Thousand+ line functions, poor…
Lucas
  • 6,328
  • 8
  • 37
  • 49
19
votes
3 answers

How do I get HTML Tidy to not put newline before closing tags?

HTML Tidy has this infuriating habit of putting a newline before the closing tag. For example:

Some text

becomes

Some text

How do I tell Tidy to keep the closing tag on the same line as the end of the content? Btw, I am running Tidy…
markvgti
  • 4,321
  • 7
  • 40
  • 62
17
votes
6 answers

Tidy-html5 on Mac OS: how to install

Please help I need to install HTML tidy on Mac OS http://w3c.github.com/tidy-html5/ I call the commands in the Terminal and get nothing: $ make -C build/gmake/ make: *** build/gmake/: No such file or directory.  Stop. $ sh build/gnuauto/setup.sh &&…
Vladimir
  • 513
  • 1
  • 5
  • 15
15
votes
3 answers

TextFX HTML Tidy replacement (Format HTML)

So it appears on several sites that TextFX's HTML tidy is both excellent and has also not been supported since 2008. It appears that the latest version of Notepad++ completely breaks it in fact. Now I've got some HTML on a single line that I need to…
Liam
  • 27,717
  • 28
  • 128
  • 190
14
votes
4 answers

Tidy CSS for Notepad++

Is there some kind of CSS tidy available for Notepad++. I have tried what seems to be every menu item in TEXTFX but none seem to do it. I am used to using PSPAD where you just select the CSS and clicked "Reformat Into Structured CSS" EDIT made a…
byronyasgur
  • 4,627
  • 13
  • 52
  • 96
10
votes
2 answers

How to tidy angular html?

I'm using tidy-html5 from brew, and i can't tidy up my angular templates because they use custom elements like those : This throws this error on tidy-html5 : line 26 column 9 - Error:…
Eduardo Moniz
  • 2,095
  • 3
  • 18
  • 27
10
votes
4 answers

html tidy removes empty tags, such as

I have documents with lots of font-awesome icons in them, which are embedded using . An empty i tag... HTML Tidy removes them. I've set drop-empty-paras to false, but it still removes this tag. The documentation has not…
frumbert
  • 2,323
  • 5
  • 30
  • 61
10
votes
2 answers

Notepad++ 6.1.x and HTMLTidy

Has someone got Notepad 6.1.x and HTMLTidy working and can tell me, where to download the dll / config. Using: Notepad++ 6.1.4 Win 7 x86 Yes, this Notepad++ / TidyHTML question has been already asked, but it either refers to outdated URLs, does not…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
9
votes
6 answers

C# version of HTML Tidy?

I am just looking for a really easy way to clean up some HTML (possibly with embedded JavaScript code). I tried two different HTML Tidy .NET ports and both are throwing exceptions... Sorry, by "clean" I mean "indent". The HTML is not malformed, at…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
7
votes
5 answers

An alternative to php tidy?

I use php tidy to process html input in my database, $fragment = tidy_repair_string($dom->saveHTML(), array('output-xhtml'=>1,'show-body-only'=>1)); I have this php_tidy turned on in my server but my live server doesn't support tidy, Fatal error:…
Run
  • 54,938
  • 169
  • 450
  • 748
7
votes
5 answers

Komodo Edit - HTML reformatting / Tidy

Is there a simple way to reformat my HTML from within Komodo Edit or to automate the process against Tidy? Something like the Ctrl+K, Ctrl+D in Visual Studio would be brilliant. I am presently running Ubuntu with Tidy installed.
Dave
  • 103
  • 1
  • 2
  • 6
7
votes
1 answer

I do not know how to get sublimelinter-html-tidy to work

I have sublime text 3, but after I installed sublimelinter-html-tidy through the 'Package Control: Install Package', nothing changed. I also have Emmit, Bracket Highlighter, Side Bar, and a few others installed on my Sublime 3, and they all do what…
SpyrosKo
  • 167
  • 1
  • 11
1
2 3
11 12