Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Add a Language Tutorial(How can someone Add a New Languge to the WTP html source editor?)
Add a Language Tutorial [message #1761114] Sun, 07 May 2017 04:22 Go to next message
Tom Burton is currently offline Tom BurtonFriend
Messages: 1
Registered: May 2017
Junior Member
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 05:40 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3204
Registered: July 2009
Senior Member

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.


Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Eclipse Version
Next Topic:Can't setup JSP debugging in Neon.3 with tomcat8
Goto Forum:
  


Current Time: Sat Jul 21 23:09:48 GMT 2018

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

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

Back to the top