java - How to parse css (stylesheet) comments (annotations)? -


I think the user defines the set of CSS rules with some comments (comments are simple comments):

P>

  / * @name page style * / body {font: 16px / 1.5 aerial; / * @ Editable / Backgroup-Color: #FFF; / * @ Editable * /} / * @name Section Header * / h1 {font: 20px / 1.2 Aerial; I can apply this stylesheet to my page but I want to parse this rule with comments and want to provide some form to edit these styles. Allow users to change styles on the fly. These comments will indicate which rules / properties are editable. 

I was looking for some browser or server solutions Easy Servers Solution To parse this CSS with some Java CSS parser, it must be changed in the past. Json and then use this JSN in the browser:

The problem is that I have not got any Java CSS parser which will be able to handle the comments.

Browser, there is no suitable CSS parser, no idea how to do this?

Have you taken a look at the CSS thumbnails parser implementation?

Document-handler has a comment method

< / Div>

Comments