Code styling inside `style` tag don't same for `lang="postcss"` and default `css`
hrynevychroman opened this issue · 2 comments
hrynevychroman commented
RayGuo-ergou commented
It parsed to postcss and I guess there's no extension to support that in your IDE yet. Maybe this will help: https://marketplace.visualstudio.com/items?itemName=cpylua.language-postcss
johnsoncodehk commented
This is the expected behavior for CSS code blocks. It uses the built-in CSS syntax highlighting in VSCode. Since CSS itself does not support inline classes, you can see that .animation-title
is not correctly colored.
For lang="postcss"
, since VSCode does not have built-in PostCSS syntax highlighting, it will use the syntax highlighting provided by the PostCSS extension you have installed. The actual behavior depends on the PostCSS extension you have installed.