Eclipse freemarker template highliting - eclipse

Eclipse Luna shows freemarker template this way:
It does not highlite any html tags inside freemarker template. Is it correct for Eclipse? May be some hidden setting is present somewhere to enable it?

Unfortunately, the plugin (the one under JBoss Tools) doesn't know HTML highlighting. I'm also unaware of any that does that.

You can use NetBeans with this plugin:
http://plugins.netbeans.org/plugin/58284/freemarker-support-for-netbeans
It highlights FreeMarker and HTML markup ;-)

Related

How to add Syntax highlighting for .Vue files in Eclipse

I just want to ask if you know how to add syntax highlighting for vue files using vue-loader. I'm using Eclipse Neon
vue is mostly tags and javascript so treating it as a HTML file would be fair enough. That can be set in eclipse for *.vue under HTML in content type.
There is a plugin in the Marketplace that might be what you're looking for. It's called CodeMix CI 1. I just installed it and aside from adding syntax highlighting, it also does code completion, which comes really handy.

Can I use Play 2.1 Template Editor and autocomplete for HTML?

Is there any way to use the Template Editor and some HTML editor at the same time? I would like features like autocomplete for HTML in the Template Editor, or even CSS autocomplete.
I am currently with the Scala IDE Eclipse 3.7.2.
PS1: I am a very beginner in Play/Scala, but I decided to install Aptana (from update site) for the very small but comfortable niceties it provides, so, dropped the play template editor for a moment. Aptana has also a coffeescript editor so, it helps while I am studying backbone with cofeescript.
IntelliJ Idea with scala and play2 plugins works fine for me, autocomplete even for routes file.
I have never used Scala IDE but I know Guillaume Bort, the creator of PlayFramework, has created a Sublime Text 2 plugin for Playframework. It has autocompletion on most file types.
The problem was fixed in this release of Play plugin for the Scala Eclipse IDE:
http://scala-ide.org/blog/play-0.4.0-announcement.html

How do I use angular.js with jsdt-jquery?

In https://stackoverflow.com/questions/12989859/what-is-the-best-ide-for-angularjs
Tonte Pouncil mentioned that it's possible to add angular.js as a library in jsdt-jquery. How does one go about doing this? thanks!
If you install https://github.com/angelozerr/angularjs-eclipse, you will benefit from
AngularjS features, in other words completion, hyperlink in HTML editor and Javascript editor.
jQuery completion because AngularJS Eclipse is based on the Javascript Inference engine tern.js.
Actually it is possible to add libraries to JSDT as well. I am not aware of such libraries. But there is angularjs-eclipse Eclipse plugin, see https://github.com/angelozerr/angularjs-eclipse

Eclipse (with JSF) code assistance (auto code hinting) problem

I am doing a JSF project in Eclipse (Helios) and I enabled the JSF facet for my project.
Code assistance (code hinting) works for the JSF tags but not for the attributes.
Say, if I type the following then the all possible tags are displayed, that is fine.
<h:
But, if I type the following and press the space bar, no code hinting for attributes appears:
<h:graphicImage
I guess that Eclipse must have this feature (Netbeans is having similar feature) but I am missing something.
Please anyone tell me what I am missing.
You need to add the TLD reference (Eg. html_basic.tld) to the Eclipse project settings. This will allow Eclipse to reference the TLD file to provide autocomplete functionality.
A better explanation of what to do can be found here:
Eclipse autocomplete (content assist) with facelets (jsf) and xhtml

Is there a mustache template syntax highlighter or plugin for Eclipse?

I'm looking for a Mustache template syntax highlighter / plugin in Eclipse
Does one exist? I don't seem to be finding anything on google, and I don't know how to write my own for Eclipse.
Although not perfect, you can use Eclipse and set MUSTACHE template files to HTML.
Go to Eclipse->Preferences->General->Content_Types
Edit CONTENT_TYPE to add a file association of .mustache
Go to Eclipse->Preferences->General->Editor->File_Associations
You should see the default HTML editors already set. If not, add a .mustache editor of your choice. I used HTML_EDITOR.
Although it won't syntax highlight the {{ }}, it's still easier to read.
There doesn't seem to be any plugin for supporting mustache Editors and views (see Eclipse MarketPlace).
That leaves only for now using an external supported editor (i.e. outside of Eclipse)