Add Sass/Scss support - #49
Conversation
|
I'll update this PR with a lighter version as you recommend |
|
I've try something, but it fails since the order of the declaration are important. Using |
|
You can use insertBefore for that, look here for an example: http://prismjs.com/components/prism-javascript.js Regarding not including too many tokens for CSS, that was a conscious choice, since most use cases don't need that kind of granularity. |
|
Oh sorry, I don't look closer enough. This is just what I need. Your highlighter is so well done. |
|
Completely rewrote. Lighter & inherit from CSS. Tell me what you think about that now. |
I don't really know what I did. Too obsessed by the selector regex maybe…
|
What about this PR ? :) |
|
Gah, the pull request cannot be merged. Could you please submit a new one? Sorry I took so long, it's my fault :( |
The sass/scss syntax embed a lot of things. It works great with a theme I made based on Monokai https://github.com/MoOx/sass-prism-theme-base
Maybe I should make a PR with the CSS generated by this theme.