1

Does anyone know of an HTML beautifier that can deal with (or at least ignore) JSP? I've searched high and low... I'm not looking for an HTML validator, just something that can format the file decently (i.e. indentation).

3
  • 2
    Would it not be preferable to write neat code from the start ;)
    – Sphvn
    Jul 25, 2012 at 12:51
  • Netbeans can (re)format JSP's
    – fvu
    Jul 25, 2012 at 12:52
  • Neat code would be ideal for sure, but it's not mine...
    – user1008893
    Jul 25, 2012 at 12:55

1 Answer 1

0

Most good IDE's will let you say which code template to use as default within another file extension.

So i use PHPstorm in which i can say, for example that a *.jsp will use html first and then jsp. This way the page will display and reformat my code with the correct spacings and what not.

Worth looking into which IDE you are using, assuming you're using one :)

3
  • i hear a lot of chatter about this. I hear its super extendable? Just from users writing addons for it. Jul 25, 2012 at 12:58
  • Yeah there are loads of addons for it.
    – Sphvn
    Jul 25, 2012 at 13:07
  • @JamieHutber: Can you perhaps explain how/where you set this in PHPStorm? Nov 6, 2012 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.