Friday Mar 13, 2009  3

EditPlus with HTML Tidy

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.

EditPlus Preferences (Tools)

EditPlus Preferences (Tools)

EditPlus Tools Menu Bar

EditPlus 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.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • Technorati
  • Twitter

{ 3 comments… read them below or add one }

1 Robert May 6, 2010 at 6:25 pm

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?

Reply

2 Ron May 15, 2010 at 6:33 am

I’m getting the same issue as Robert. I tried putting an absolute path for both and just the exe: no dice.

Reply

3 whit March 3, 2011 at 11:23 pm

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.

Reply

Leave a Comment

Previous post:

Next post: