If you’re an Editplus user like me and would want to use HTML Tidy with it here is how you can do it. Below are screenshots of how to add Tidy HTML to your Tools menu Bar.
NOTE: under the Command parameter you must specify the absolute path to your tidy.exe and tidy configuration file e.g. “C:\Program Files\HTML Tidy\tidy.exe“
Sample configuration file for XHTML output. (HTML Tidy Reference)
indent: auto
indent-spaces: 4 // preferably the same with tab-size
tab-size: 4
fix-indent-auto: yes
clean: yes
wrap: 0 //no wrapping
markup: yes
output-xml: no
input-xml: no
output-xhtml: yes
show-warnings: yes
numeric-entities: yes
quote-marks: yes
quote-nbsp: yes
quote-ampersand: yes
break-before-br: no
uppercase-tags: no
uppercase-attributes: no
char-encoding: latin1
new-inline-tags: cfif, cfelse, math, mroot, mrow, mi, mn, mo, msqrt, mfrac, msubsup, munderover, munder, mover, mmultiscripts, msup, msub, mtext, mprescripts, mtable, mtr, mtd, mth
new-blocklevel-tags: cfoutput, cfquery
new-empty-tags: cfelse
logical-emphasis: yes
enclose-text: yes
write-back: no
If by any chance you use a different text editor which doesn’t support tools or plugins you can use TidyUI which is a stand-alone front-end for HTML Tidy for the Windows™ platform.




{ 3 comments… read them below or add one }
I can’t get Tidy to do anything in EditPlus. I click ion it after setting it up and it looks like it might do something but the XML file is not formatted or even touched. Any ideas?
I’m getting the same issue as Robert. I tried putting an absolute path for both and just the exe: no dice.
If the path to the exe has spaces in it, surround the entire path in quotes. Same for the config file’s path. Secondly, set input-xml and output-xml = yes.