Recently, I've started working with a new server side language that is based on Javascript. It has similar functionalities to PHP, but uses Javascript syntax for processing server responses and handling logic. In terms of text editors, Netbeans is my go-to choice, and now I am in need of developing a new editor plug-in for Netbeans to provide syntax coloring and code assistance support for this language. Essentially, I want the editor to mimic the behavior of Netbeans' PHP editor, but with support for Javascript code (including HTML syntax like the PHP editor).
I would greatly appreciate it if someone could point me towards better tutorials on developing language support plugins for Netbeans. The resources I found through Google weren't quite what I was looking for. If there's a way to seamlessly merge the existing Netbeans support for Javascript and HTML, similar to how the PHP editor operates, it would make things much simpler.
<%
var myPerson={"name":"test name","age":25};
function savePerson(person){
.... ${any logic}
}
savePerson(myPerson);
%>
<div><span>......</span></div>
If it's possible to instruct the current Netbeans HTML editor to recognize '<%' as ' <script >' and '%>' as ' </script >', then my requirements would likely be fulfilled.