Autocomplete and syntax highlighting for style attributes
See original GitHub issueComing from React/JSX, you could get the list of CSS properties within the style
property/attribute and have syntax highlighting.
It uses object notation instead of a string, although this surprising this still shows up within a Svelte component (albeit not supported). I figure due to the use of svelte2tsx
It would be useful if the same was supported within Svelte when using the style
attribute (string).
It would also be helpful if the expressions within the values were highlighted as such (and not just shown as one big string).
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
How To Create a Syntax Highlighter - W3Schools
Learn how to create and use a Syntax Highlighter. Syntax Highlighter. Code snippets are easier to read when you add some color:.
Read more >HTML attribute: autocomplete - MDN Web Docs
The HTML autocomplete attribute lets web developers specify what if any permission the user agent has to provide automated assistance in filling out...
Read more >Change Autocomplete Styles in WebKit Browsers - CSS-Tricks
We got a nice tip from Lydia Dugger via email with a method for changing the styles that WebKit browsers apply to form...
Read more >syntax highlighting and auto-completion for CSS?
css -mode already does syntax highlighting out of the box. Not to mention you're asking two very different questions here.
Read more >Ace Editor autocomplete and multiple languages
I use Aptana, which I think is a very fine and enhanced IDE, but even that doesn't highlight html code in say an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Adding syntax highlighting inside of style strings was something I added but it was removed when it had a few issues. I don’t know how the TSX grammar handles it - it’s probably something goofy, like writing their own CSS syntax highlighting for just style strings.
Right now there is a hesitation to add further syntax highlighting without a test suite, but otherwise I’d be willing to experiment with this.
The syntax highlighting part where moustache tags are not highlighted will be fixed with the next release.