rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

Only color angle brackets (<>) with html

Open hwalinga opened this issue 5 years ago • 6 comments

Is your feature request related to a problem? Please describe. In html the whole tag is colored: this makes reading the attributes harder.

Describe the solution you'd like I would like to have only the angle brackets (<>) in html, colored. I don't know if this is currently possible.

Describe alternatives you've considered Currently I have rainbow is disabled for html.

Additional context So for this image:

https://raw.githubusercontent.com/luochen1990/rainbow/demo/html.png

You can see the whole tag is colored, while I would like to see only the <> to be colored and the attributes, like id="p1" be differently colored.

hwalinga avatar May 01 '19 16:05 hwalinga

similarly, I would like only <tagname and > (but not the contents of the tag) to be colored.

stumash avatar Aug 19 '20 19:08 stumash

@stumash That is maybe a better idea indeed.

hwalinga avatar Aug 20 '20 08:08 hwalinga

我觉得这个需求也很关键,作者大大什么时候考虑一下

micsama avatar Mar 02 '21 01:03 micsama

I think this requirement is also very important. When will the author think about it?

Last release was 6 years ago, so I don't think this project is getting active work atm, or at least only on important stuff. So you probably have to do it yourself if you want it.

hwalinga avatar Mar 02 '21 10:03 hwalinga

Has somebody found some DIY solution or another plugin that can rainbowify tags in HTML or any other language without coloring "less than" symbols?

sicr0 avatar Nov 10 '21 02:11 sicr0

Has somebody found some DIY solution or another plugin that can rainbowify tags in HTML or any other language without coloring "less than" symbols?

I've moved my neovim config over to the lua ecosystem that's blowing up. There's a plugin that uses lua and treesitter that does what i want.

It's a big change to move to neovim+lua but it's a thriving ecosystem and the plugins are getting better at an insane rate

stumash avatar Nov 13 '21 02:11 stumash