Code Formatter: clearing badly formatted jsp code

So, I am working on a jsp / servlet that came to me and I am looking at a jsp file and it is just a jungle of jstl tags, java code and html dumped together. At first it looked like someone had started the standard eclipse formatting on it and had a page width of up to 40, so many things are broken, I tried to format it with a larger page width, but it seemed to make it worse without being able to say what happens without formatting parts of it first.

Is anyone lucky with any jsp / code formatter?

+3
source share
6 answers

Eclipse WTP? , - JSP.

, JSP → ; → JSP → ; , - XML HTML JSP.

+3

, JSP, javascript, : http://jsbeautifier.org/

+2

, , IntelliJ IDEA. , , .

0

Netbeans jsp-. Netbeans 6.5.1 .

0

Use this to format any HTML, JSP, or any other language tag: https://www.freeformatter.com/html-formatter.htm

0
source

Source: https://habr.com/ru/post/1714435/


All Articles