Closed geoctrl closed 5 years ago
I lean towards the second, over the first. The first seems like it changes how you write all your react code in a pretty drastic way
implemented k
tag #33
We should add documentation for getting syntax highlighting
I'm toying with some ideas on how to get syntax highlighting for css using kremling (css-in-js)
my first thought was that we could do some sort of html syntax highlighting using a webpack loader (like vue-loader) where both js & styles lived in harmony:
pros:
cons:
<style>
into the<script>
in a way that's not confusing... (the example above uses$style
, but I'm not a fan of that)Another option is that we could add a kremling tag to the css template literal:
This would allow us to target
kremCss
with an editor plugin to get the highlightingpros:
cons:
kremCss
is another piece of the puzzle to remember when adding your styles - I'm wondering if we're making this too complicated...