0

I like Eclipse's HTML formatter. It is the best formatter I have seen and I want to use it programmatically. Is it possible? And how?

Thank you greg-449, but your advice is too difficult for me.

I have an lxml based XHTML-to-XHTML converter. I am using it mainly from PyDev. Its output is not so much human-readable and that is not what I want.

I know several ways to format XHTML. And I like Eclipse's formatter the best.

1
  • Use it programmatically where? It is probably possible to use it in an Eclipse plug-in on a SourceViewer object. Commented Jun 7, 2016 at 7:30

1 Answer 1

1

eclipse's html formatter class is org.eclipse.wst.html.core.internal.format.HTMLFormatter

you can get the source code and remove dependencies to other eclipse libraries in the class and use it...

you can find the source from here (and some other places)

Sign up to request clarification or add additional context in comments.

Comments