Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Javascript/CSS Syntax highlighting within custom tag (Is it possible to have Javascript/CSS syntax highlighting within a custom tag)
Javascript/CSS Syntax highlighting within custom tag [message #529372] Sat, 24 April 2010 09:10 Go to previous message
Mookle  is currently offline Mookle Friend
Messages: 3
Registered: April 2010
Junior Member
I'm in the process of building a custom tag library that will allow me to include css and/or javascript in any part of a jsp page.

The custom tag will then ensure that all javascript/css spread throughout the page is collated and added to the <head> of the document.
The issue I'm finding is that I can't find a method to inform the jsp editor that the content of my custom tag is javascript or css.

Is there a way that I can force the jsp editor to recognise that content held in a custom tag is javascript or css?

So for example the code could look something like:
<ctag:javascript>
function myFunc(){
document.getElementById("example").style.display="block";
}
</ctag>
<ctag:style>
#example { width:100px; }
</ctag:style>
<div id="example">This is an example</div>

I'm happy to do ground work in enhancing the WTP JSP editor if needs be, just not sure where to start.

Thanks in advance for any help you can offer.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Eclipe Helios server adapters
Next Topic:Incorrect formatting of Javascript line comments
Goto Forum:
  


Current Time: Fri May 24 20:57:14 GMT 2024

Powered by FUDForum. Page generated in 0.03592 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top