Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only color angle brackets (<>) with html #124

Open
hwalinga opened this issue May 1, 2019 · 6 comments
Open

Only color angle brackets (<>) with html #124

hwalinga opened this issue May 1, 2019 · 6 comments

Comments

@hwalinga
Copy link

hwalinga commented May 1, 2019

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.

@stumash
Copy link

stumash commented Aug 19, 2020

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

@hwalinga
Copy link
Author

@stumash That is maybe a better idea indeed.

@micsama
Copy link

micsama commented Mar 2, 2021

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

@hwalinga
Copy link
Author

hwalinga commented Mar 2, 2021

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.

@sicr0
Copy link

sicr0 commented Nov 10, 2021

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

@stumash
Copy link

stumash commented Nov 13, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants