• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

Auto correction of a CSS file.

If there is any error in CSS file then how we can automatically correct that in the same file. Please tell me if it is possible in Java.
0
rajkumarprabhunath
Asked:
rajkumarprabhunath
  • 2
  • 2
1 Solution
 
quincydudeCommented:
There are many tools around and you can check your css syntax with this
http://jigsaw.w3.org/css-validator/
0
 
rajkumarprabhunathAuthor Commented:
thanks for your comment, but I'm looking for a way in which
I can correct the errors by coding.
Suppose I validated a CSS file and I got error at line 2 and
column 17 then in that case how I will correct that error.
I want to implement this by using java.
please tell me if it is possible.
0
 
quincydudeCommented:
It's possible . However, you will be like writing a parser for css and you need to know the whole "grammer system" of it. You may check out some open source css parser projects and use those API to help you.

http://cssparser.sourceforge.net/
0
 
rajkumarprabhunathAuthor Commented:
if there is any java code doing the same. please provide me that.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now