Hacker News new | ask | show | jobs
Show HN: Syntax Highlighter for VSCode – Tree-Sitter and Semantic Tokens (github.com)
3 points by pesh 2070 days ago
1 comments

Hi, I had a related question. I want to make a VSCode extension for highlighting state and props in React in a different colour. How would I do that. Any tips ?
Hello! I think such functionality can be implemented only trough Language Server https://code.visualstudio.com/api/language-extensions/langua... . Very likely it'll be much easier to add this feature to the standard JS/TS extension.