felipeochoa / rjsx-mode

A JSX major mode for Emacs
https://github.com/felipeochoa/rjsx-mode
MIT License
639 stars 32 forks source link

How to highlight tags in jsx #124

Closed idr4n closed 4 years ago

idr4n commented 4 years ago

In the readme it says that it is possible to "Highlighting JSX tag names and attributes (using the rjsx-tag and rjsx-attr faces)". How can I do that?

I want to highlight matching tags by changing the background, foreground of the tag. In web-mode I accomplish this with (setq web-mode-enable-current-element-highlight t)

Thanks in advance.

felipeochoa commented 4 years ago

The highlighting mentioned just allows static tag highlighting (i.e., in contrast to js2 mode which leaves everything with the default face). We don't have support for dynamic tag highlighting