Eclipse Recognizes Todo in FreeMarker Template File - eclipse

When editing Java code in Eclipse IDE, I can put // TODO in the code and Eclipse IDE will add the comment text into my Eclipse IDE Tasks window.
When editing XML files in Eclipse IDE, I can put <!-- TODO...--> in the file and Eclipse IDE will add the comment text into my Eclipse IDE Tasks window.
I am editing a FreeMarker FTL file in Eclipse IDE. I have installed the FreeMarker plugin. I am using the FreeMarker editor that comes with the plugin. The FTL file has HTML and FreeMarker tags. What can I put in the file to have the text show up in my Eclipse IDE Tasks window? Is there a configuration change I can make to Eclipse IDE to cause it to recognize the TODO?

If you are just using the plain text editor then there is nothing you can type.
However you can use 'Edit > Add Task...' to add a task (you can also right click on the left hand vertical ruler and select 'Add Task...').
A Task marker will be added in the left hand vertical ruler, the tooltip for this will show your text. The marker will also appear in the Tasks view.

Related

No JavaScript syntax highlighting in Eclipse 2020-09

I just upgraded to Eclipse 2020-09 (4.17.0) from Eclipse Luna. After installing, I installed Eclipse Web Developer Tools 3.19 from the Marketplace, then restarted Eclipse. When I open a .js file, there is no syntax highlighting. It was fine out of the box with Luna, so is there anything extra that I need to configure in 2020-09? File associations for *.js shows this:
It seems JavaScript files (*.js) have been associated with the plain text editor instead of the Generic Text Editor by mistake (please make sure it has been reported to Eclipse).
Right-click the file and choose Open With > Generic Text Editor.
Or better, associate all *.js files with the Generic Text Editor by right-click a *.js file, choose Open With > Other..., select the Generic Text Editor in the list and tick the Use it for all '.js' files* checkbox at the bottom (as shown in my video here).
Yes, you need to install the Wild Web Developer feature so that it provides that functionality through the Generic Text Editor.

How to add a custom JSP tag in the Eclipse IDE is Customize Palette?

I am using Eclipse IDE which contains JSP plugin. I want to add a custom JSP tag.
In my snippets panel I did a right-click > Customize:
A Customize Palette dialog opens with a button to import files:
What kind of file I need to put and what is the contents of this file?

Why my Eclipse doesn't mark the reserverd words for Haskell?

I've installed the plugin for Eclipse Luna: EclipseFP - http://eclipsefp.sf.net/updates . Its Works, but the IDE is not marking the reserved words.
That looks like you are actually using the normal text editor.
Close the file and then right click on the file in Project Explorer and choose 'Open With...' and select the Haskell editor.
Eclipse remembers the last editor you used to open a file so if you had opened this file before installing the plug-in you will get the plain text editor. Once you have opened the file with the correct editor it will use that editor by default in future.

Freemarker not showing syntax highlights in Spring tool suite

I installed Freemarker ide from eclipse market place for Spring tool suite. I installed Freemarker from "Jboss tools for Luna" in eclipse market place. After installing it only highlights the Freemarker experssion ${}. Other html elmements are not highlighting. Why this happen?
HTML was never highlighted by the JBoss FreeMarker IDE, only FreeMarker tags (like <#if ...>). (Contributions are highly welcome...)
This is my temporary solution: edit 'File Association' to open FTL with SublimeText. The FreeMarker plugin in Sublime is really good. And as long as you keep the FTL file opened in Eclipse/STS, any change made in Sublime will trigger the FileSync immediately.
I did also cope with this problem by changing 'Content Types' and 'File Associations' in 'Preference'. But either using JSP or HTML editor the FTL code won't be highlighted.

Eclipse project explorer retains focus when opening a file

Opening a file in Eclipse's Project Explorer with a double click opens the file in the built-in editor but does not transfer the focus to the file for immediate editing. Instead the focus remains in the Project Explorer and a further click in the editor window or tab is required before editing or moving around the document. I guess this is by design but I am hoping there is an option or workaround of some kind. Thanks.
Using Eclipse 3.7.2 with C++ development tools installed on Ubuntu 12-04