Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to let Eclipse accept the canvas tag?

I installed the Aptana plugin in my Eclipse, and I use canvas tag in my html file. I find that the Eclipse can't recognize the canvas tag, it highlight my canvas tags, and display follow msg:

< canvas > is not recognized

How can I fix this problem? thx in advance.

like image 419
DNB5brims Avatar asked Aug 01 '09 14:08

DNB5brims


2 Answers

This is most likely coming from the Tidy HTML validator packaged with Aptana's version of Eclipse. If you open the preferences for your HTML browser within Aptana, you can add a regular expression to filter the validation errors.

This can be done by going to the Window > Preferences dialog window. Then, expand Aptana > HTML and select 'Validation'.

The filter would probably look like this:

.*<canvas> is not recognized.*

like image 56
Malaxeur Avatar answered Nov 15 '22 20:11

Malaxeur


The specific rule under the Aptana>Editors>HTML>Validation filter is

.*<\s*canvas\s*> is not recognized.*

Doing something more generic like .* is not recognized.* lets any Bad Tag in

like image 30
kwv Avatar answered Nov 15 '22 20:11

kwv