Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Syntax Highlighter for VSCode – Tree-Sitter and Semantic Tokens (github.com/evgeniypeshkov)
3 points by pesh on Oct 22, 2020 | hide | past | favorite | 2 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: