How to disable Eclipse HTML validation via M2E - eclipse

I have this project that contains some HTML templates in src/webapp. Those templates have freemarker placeholders like
<# something %>
which make Eclipse complain about unclosed tags.
Is there anything that I could configure in M2E plugin to instruct Eclipse to skip validation of those files?

Try to uncheck some html validations in eclipse using this:
Window > Preferences > Validation

Related

can tern eclipse validate javascript in html files?

I am trying to use Tern Eclipse IDE in a static web project. Alas, I'm not able to configure it to validate javascript in script tags in .html files. Is this even supported? Is there any doc how to do it?

IceFaces 1.8 tags doesn't autocomplete in XHTML, only in JSP

I'm using facing with strange behaviour which I do not understand.
Eclipse : 4.4 Luna
JSF : 1.2
IceFaces : 1.8
Eclipse plugin : JBoss Tools
When I'm editing (JSP Editor) *.xhtml file there is code complete for h:, f: and ui: but not for ice: (IceFaces) available,
but when I renamed file to *.jsp (without any change in its content) code complete is available for all tags.
I was trying this but it wont help. Same thing when using 'JBoss Tools JSP Editor'.
My file content:
<ice:panelGroup xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<h:inputText value="example" />
</ice:panelGroup>
I really appreciate any help you can provide.
Icefaces plugin interfers with JBoss Tool Editor.
I get the autocomplete to work when i drop the IceFaces plugin.
xhtml extension must be declared in JSP with other JSP extensions.
Window > Preferences > General > Content Types > Text > JSP > Add (xhtml)
Hope this will save time.
Follow these steps:
Add icefaces plugin to eclipse.
Right click on the project and go to properties
Go to project facelets
Add icefaces facelet to project.
That's it. Now you should be getting the autocomplete.
Make sure:
You are using JBoss Tools HTML Editor
You have icefaces-comps.jar in your Eclipse project's class path
Project properties -> JBoss Tools Knowledge Base -> Support is enabled

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 autocomplete in xml editor

How to configure eclipse to autocomplete at least class full path on Ctrl+Space in xml editor?
I am using springsource tool suite (its same eclipse), there IDE understands when it is beans config file and auto complete works. But elsewhere in just xml file, this doesn't work :(
You can try Rinzo XML editor if you like which does what you are asking for:
http://editorxml.sourceforge.net/
Best Regards!
perfect! But I wonder why eclipse Mars do not have "Other Java Proposals" in Java > Editor > Content Assit -> Advanced.

Format freemarker files in Eclipse

Actually we have freemarker files (ftl) under Eclipse + Freemarker plugin (from JBoss).
Do you know a way to format ftl files ?
Thanks
For ftl files that represent HTML configuring eclipse to open the HTML Editor works nicely. The HTML Editor has formatting capability as asked for. Todo configure eclipse to open ftl files with the HTML Editor you can use "open with" and there you'll get offered to link the HTML Editor permanently to the ftl extension:
In the Content Types Preferences Page you can than actually add the *.ftl extension:
I looked for a formatting tool a few months ago and I was unable to find any such tools. To my knowledge there no such tools currently available, just the syntax highlighting you mentioned.
Associated the ftl file extension with your web page editor (assuming you have wtp already installed).
An old question. I had the same problem for some time now, the default html editor contains some irritating features when working on freemarker templates, especially when using the bracket syntax.
Aptana studio eclipse plugin solves most of the problems:
http://www.aptana.com/products/studio3/download