Using Marked to view commented CSS files

EllenH's Avatar

EllenH

15 Jul, 2013 02:49 PM

I document my css extensively in comments in my css files using markdown syntax.

I then view the resulting files in Marked and they are much more readable than the source in Sublime Text or BBEdit (my two preferred editors). The css rules are nicely shown as code (in a pre) and the comments containing the markdown text are rendered according to the stylesheet chosen.

However, I would like to be able to hide the */ and /* (or sometimes //) around the comments. This would be easy with a custom stylesheet if the paragraphs containing these strings generated by Marked had a class. As it is, they sort of ruin the show.

Also, it would be nice if I could tell Marked that the "code" is css and that #foo is an id and not a comment... As it is, the line with the id # is styled like a comment.

Is there any way to do these things ?

Thanks for a great app.

EllenH

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac