i eclipse's html formatter. best formatter have seen , want use programmatically. possible? , how?
thank greg-449, advice difficult me.
i have lxml based xhtml-to-xhtml converter. using pydev. output not human-readable , not want.
i know several ways format xhtml. , eclipse's formatter best.
eclipse's html formatter class org.eclipse.wst.html.core.internal.format.htmlformatter
you can source code , remove dependencies other eclipse libraries in class , use it...
you can find source here (and other places)