When I use pseudo-class selectors in sublime text, the syntax does not highlight the pseudo-class selectors (mine is plain white, see screenshot).

Everything works fine, it's just not highlighted.

Any idea on how I can enable it? Thanks!

Here's a screenshot of the syntax and the extensions/plugins I've installed:

enter image description here


You can solve this by writing a custom color scheme or using an existing color scheme that colors the pseudo-class selectors the way you like.

There's no simple way to color the selectors. Extensive documentation on writing color schemes can be found here.

If you feel a color other white should be default in the color scheme that you're using, you can open an issue.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.