Add a Language Tutorial [message #1761114] |
Sun, 07 May 2017 00:22  |
Eclipse User |
|
|
|
Hello,
I work with a tool called Oracle Webcenter Content.
It has it's own Web Programing language called IdocScript.
Are there any recent/good tutorials on how someone would extend the WebTools Project to add support for a new language?
Thank you.
|
|
|
Re: Add a Language Tutorial [message #1763432 is a reply to message #1761114] |
Tue, 16 May 2017 01:40  |
Eclipse User |
|
|
|
It looks like IdocScript has more in common with server-side templating languages, like PHP specifically, than HTML with client-side scripting that's allowed in very specific locations. I don't really know the internals of PHP's implementation. There's no formal tutorial, per se, because formally supporting other server-side languages was never a committed goal.
One could start by modifying the JSPTokenizer (its specification is in the sse.core bundle within the git repository http://git.eclipse.org/c/sourceediting/webtools.sourceediting.git as bundles/org.eclipse.wst.sse.core/DevTimeSupport/SedModel/HTMLTokenizer/devel/JSPTokenizer.jflex) to allow for things that look like XML processing instructions at more locations, or setting up a another kind of server-side script opener to go along with, or in place of, JSP's '%'. Then its a matter of making the partitioner smarter and seeing how much can be tied in using new partition types.
|
|
|
Powered by
FUDForum. Page generated in 0.03656 seconds