| Javascript/CSS Syntax highlighting within custom tag [message #529372] |
Sat, 24 April 2010 05:10  |
Mookle 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.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01880 seconds