Take the 2-minute tour ×
Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. It's 100% free, no registration required.

On Windows, I'd like to be able to edit some HTML that's been stripped of whitespace. So I would like some sort of HTML beautifier feature, syntax highlighting and tab indenting would be nice.

Not after any drag and drop / WYSIWYG features as I'd be handcoding. The lighter/smaller the better. Oh, and free/open source.

share|improve this question
1  
If you're using Firefox: There's an addon (HTML Validator) which has a "cleanup" function including re-formatting/beautifying. You could export the results to continue in a different editor then. Just saying in case there are only options without the "cleanup/reformat" included, so you could combine. –  Izzy Aug 26 at 21:06
    
Although not free or open source or small, but Visual studio (and I maybe WebMatrix which is small and free) can auto-format and usually does it on paste. The free version of VS should be able to do this. –  CobaltHex Aug 28 at 4:35
    
As a quick alternative (which I use), on linux, you can install tidy from the repos, then just tidy -im filename which will prettify with indents and modify the original filename. –  user3791372 Aug 28 at 14:59

3 Answers 3

up vote 2 down vote accepted

SynWrite, free and open-source. It has HTML beautify, call menu item HTMLHTML TidyTidy - reformat only.

Other HTML items in Tidy menu - for different tasks, more choices of reformatting. JS/CSS beautify also exists: just see Python plugins site.

Synwrite interface: HTML menu

share|improve this answer

You can use Eclipse + Eclipse Tidy (Marketplace):

  • free and open source
  • cross-platform
  • HTML beautifier feature:

enter image description here

enter image description here

share|improve this answer

Sublime Text has a plugin called HTMLBeautify which you can install through the Sublime Package Manager. It is a beautiful editor, but just an editor and no more.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.