1

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?

Vants
  • 88
  • 1
  • 7

3 Answers3

0

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.

greg-449
  • 109,219
  • 232
  • 102
  • 145
  • This isn't actually answer that really helps. I think I use WTP SDK to get that dependency. – Vants Mar 24 '15 at 18:08
0

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

Angelo
  • 2,027
  • 13
  • 17
  • I already used Aptana plugin for JavaScript and HTML syntax support. WTP seemed too complicated for that. – Vants Jul 04 '15 at 21:25
  • tern.java can be used without WTP with a simple SWT Text. – Angelo Jul 05 '15 at 08:32
  • I have already used Aptana and I think I rewrite that part again in my editor. But still, it is good thing to know. – Vants Jul 06 '15 at 11:39
  • 1
    Pay attention, it's just for completion, validation, hyperlink, hover not for syntax coloration. – Angelo Jul 06 '15 at 12:55
0

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

Vants
  • 88
  • 1
  • 7