[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: JSP - java-code highlightning

Pete wrote:
Hello, please allow me my first question in this newsgroup:

I am using Eclipse to build and edit jsp-files.
Is there a way I could switch to a different background color for Java Code?
I am used to that from another IDE and I am really missing this feature.


e.g.
<%-- START lightyellow background --%>
<% JAVA CODE HERE
AND HERE
AND HERE %>
<%-- STOP lightyellow background --%>

<h1>This is HTML code</h1>
<p>
 <%-- START lightyellow background --%>
 <%= JAVA-EXPRESSION %>
 <%-- STOP lightyellow background --%>
</>


Thank you for your time and suggestions,

Happy eastern!
Pete


I am assuming you are using WTP. Now go to Window -> Preferences -> Web and XML -> JSP file -> Syntax highlighting. Now you select every "Syntax Element" and give it a background color of your choice. This is will NOT get you exact what you need, but I guess this is the closest you can get to it.

You can do similar "Syntax Coloring" for Java, HTML, XML, etc.

hth,
Ankur..