Volleynerd Knowledge Base

Sunday, April 12, 2009

Notepad++ XML Tidy


Finally decided to spend a few minutes looking into HTML Tidy for Notepad++ ... I just kept feeling like "surely somebody has built a plugin" to make XML format pretty (like Visual Studio CTRL+K, CTRL+D)

Turns out - HTML Tidy has support for XML. I've always had the HTML Tidy stuff in the Notepad++ menu, but never got it working against XML.

Here's what you need.

HTMLTIDY.CFG needs to be in the Notepad++\Plugins\NPPTextFX directory
and here's it's contents

indent: auto
indent-spaces: 2
wrap: 72
markup: yes
output-xml:yes
input-xml: yes
show-warnings: yes
numeric-entities: yes
quote-marks: yes
quote-nbsp: yes
quote-ampersand: no
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


14 Feb 2006 version. Tells about TIDYCFG.INI, but could only get things working with HTMLTIDY.CFG



Comments: Post a Comment

Home