1

I'm working in a JSP project and my team's working with Eclipse. We must follow some JSP conventions by our company but I can find where is the Eclipse's "JSP formatter". Someone know about it? (The way to config how Eclipse format the JSP code) Please tell me how or just some keyword. Many thanks!

Luke
  • 1,623
  • 3
  • 24
  • 32
  • 1
    What kind of formatting do you want? If it's colors only, then `Window->Preferences->General->Editors->Structured Text Editors` If it's not - you need to install external jsp editor. – Sergey Galchenko Aug 04 '11 at 10:45
  • Thanks Sergey, I'm finding a tool to format the blank-lines, indent and many thins such as
    tag must be at the end of any line. the

    , p'content,

    , , td's content, must be in 3 line although content just has some letter. etc...
    – Luke Aug 04 '11 at 14:55

1 Answers1

0

You need to install the Web Tools Project of Eclipse. This is available from the basic Eclipse repositories and offers support for configurable JSP editing.

Dirk
  • 1,893
  • 1
  • 19
  • 26
  • thanks Dirk I'm using Eclipse EE. It's come with WTP but the built-in JSP Editor do not satisfy me. – Luke Aug 04 '11 at 14:51
  • 1
    Well, if the configuration options there (which can be based on HTML or XML editors) do not suffice your needs, probably the editors suggested [here](http://stackoverflow.com/questions/211841/is-there-a-good-jsp-editor-for-eclipse) help any further. – Dirk Aug 04 '11 at 15:50