I would refer to the Netbeans WIKI "How to create support for a new language" here: http://wiki.netbeans.org/How_to_create_support_for_a_new_language
Hope that helps :)
سؤال
I made a custom interpreter to write server-side code in javascript embedded in HTML, much like PHP, except for the actual programming language. It is implemented as a Servlet that parses Javascript using Rhino.
The pages are defined as:
<%
// Javascript code
var world = "World";
%>
<html>
<body>
<!-- the following code is a javascript expression -->
Hello <%= world %>
</body>
</html>
How could I build support for this language into NetBeans? I see that NetBeans already parses HTML and Javascript perfectly. Is it possible to reuse/combine Netbeans' HTML+JS functionality to parse & highlight these pages?
المحلول
I would refer to the Netbeans WIKI "How to create support for a new language" here: http://wiki.netbeans.org/How_to_create_support_for_a_new_language
Hope that helps :)