HiteshKumar / mobile-web-development-with-phonegap

Automatically exported from code.google.com/p/mobile-web-development-with-phonegap
0 stars 0 forks source link

Eclipse jslint plugin can not validate css and html files #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hi, I am using jslint as eclipse plugin to validate css and html files.
But there is no result for these files.

1. create a javascript project
2. create a new file that named csstest.css, the context like this:
   body {
      background-color: #f0ffff;
   }
3. create a html file that named htmltest.html, the context like this:
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
   <HTML>
   <head>
     <Title></title>
   </head>
   <body>
     <div onclick="if (a&lt;b) this.innerHTML= &quot;I said 
       \&quot;Hello &amp;amp; welcome!\&quot;&quot;">
   </body>
   </html>
4. In jslint4java's option,select "css" option.
5. On project do right-click, click "Enable jslint4java".

Look at output, there is no information for css and html files.
I'm using windows7 sp1 32bit os. jslint4java plugin's version is 
1.0.1.201207042009

I don't know how to validate css and html file, Can you tell me the way
to do this? Thank you!

Original issue reported on code.google.com by qllwenh...@gmail.com on 10 Dec 2012 at 2:59

GoogleCodeExporter commented 9 years ago
The jslint4java plugin only validates JavaScript. You should look for other 
Eclipse plugins for css and html validation

Original comment by paul.beu...@gmail.com on 10 Dec 2012 at 5:00

GoogleCodeExporter commented 9 years ago
Thank you for your answer.

Original comment by qllwenh...@gmail.com on 11 Dec 2012 at 2:07

GoogleCodeExporter commented 9 years ago
hi, Thank you for your answer.
I have another question about JsLint4java plugin, If jslint4java only validates 
JavaScript, JsLint4java looks as if "cap","css","fragment" and "on" option is 
not needed. So i think in UI these four option should be better to delete.
Do you think so?

Original comment by qllwenh...@gmail.com on 11 Dec 2012 at 9:06