Eclipse JFace editor with JavaScript support

265 views Asked by At

I'm developing Eclipse editor with SWT/JFace for doT.js template engine. I have done tags highlighting, content assist with doT.js global variables and tags. But I'm new at Eclipse plugin development and I have a probleem.

Problem is that inside doT.js tags I need JavaScript syntacs. Is it possible to use already existing editors/ plugins (like Aptana plugin) or add JS syntacs some other way?

3

There are 3 answers

0
Vants On BEST ANSWER

I used Aptana plugin to get JavaScript and HTML syntax support for my editor. WTP seemed to complicated for that.

1
greg-449 On

The Eclipse Web Tools Project (WTP) contains a Javascript editor.

You can install this using 'Help > Install New Software...' Choose you main Eclipse site in the 'Work with' field (http://download.eclipse.org/releases/luna for Luna).

Choose 'Javascript Development Tools' in the 'Web, XML, Java EE...' section.

4
Angelo On

Disclaimer, I'm the author of the tern.java.

If you need powerfull completion, hyperlink, hover, validation, for JavaScript, I suggest you that you try tern.java. You can use it with a simple SWT Text:

enter image description here

See this sample at tern.eclipse.swt.samples