Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to edit HTML templates
How to edit HTML templates [message #551391] Fri, 06 August 2010 08:38 Go to next message
David Goodenough is currently offline David Goodenough
Messages: 155
Registered: July 2009
Senior Member
I have some HTML files which are templates, and thus contain markers for
substitutions. In particular this template system uses <% ... %> markers.

How do I tell the HTML validator that this is OK?

David
Re: How to edit HTML templates [message #552093 is a reply to message #551391] Tue, 10 August 2010 19:26 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2277
Registered: July 2009
Senior Member
On 8/6/2010 4:38 AM, David Goodenough wrote:
> I have some HTML files which are templates, and thus contain markers for
> substitutions. In particular this template system uses<% ... %> markers.
>
> How do I tell the HTML validator that this is OK?

The short answer is that you can not; those markers are simply not part
of the allowed syntax. They are allowed throughout the file for JSPs,
however.

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: How to edit HTML templates [message #552115 is a reply to message #552093] Tue, 10 August 2010 21:59 Go to previous message
David Goodenough is currently offline David Goodenough
Messages: 155
Registered: July 2009
Senior Member
Nitin Dahyabhai wrote:

> On 8/6/2010 4:38 AM, David Goodenough wrote:
>> I have some HTML files which are templates, and thus contain markers for
>> substitutions. In particular this template system uses<% ... %>
>> markers.
>>
>> How do I tell the HTML validator that this is OK?
>
> The short answer is that you can not; those markers are simply not part
> of the allowed syntax. They are allowed throughout the file for JSPs,
> however.
>
That's a shame, the system relies on them being .html. I will submit a
wishlist request. At least I should be able to specify things to ignore.

David
Previous Topic:Help me for add Maven Dependency on Eclipse Helio
Next Topic:Problem with .jspf and validation
Goto Forum:
  


Current Time: Tue Sep 23 14:42:04 GMT 2014

Powered by FUDForum. Page generated in 0.02083 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software