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

Some way to make non-printing characters/tags darker? #30

Closed
subnut opened this issue Sep 14, 2020 · 3 comments
Closed

Some way to make non-printing characters/tags darker? #30

subnut opened this issue Sep 14, 2020 · 3 comments

Comments

@subnut
Copy link

subnut commented Sep 14, 2020

tags like <br> <sub> </sub>
non-printing characters like &nbsp;

Example from ghostwriter

image

notice how only Cl, 2, etc printing characters are in the foreground color? The rest are in some kind of a faded color?
I guess that the faded color can be obtained easily (ref. #7)
But I don't know anything about detecting the words/characters

Is it feasible?

@daliusd
Copy link
Contributor

daliusd commented Nov 9, 2020

&nbsp; is highlighted already (at least for filetype=html)

image

It is not clear what filetype are you dealing with in the first place. Here you can look how html syntax file looks like:
https://github.com/neovim/neovim/blob/master/runtime/syntax/html.vim

You can search through it and <br>, <sub> tags are not in it. So overall it seems you want to have custom syntax file in the first place. So it is not necessary colorscheme specific problem.

Here is example of simple syntax TODO file that might give idea how to write one:
https://github.com/daliusd/cfg/blob/master/.vim/syntax/todo.vim

Here is how result of syntax file looks like:
image

@daliusd
Copy link
Contributor

daliusd commented Nov 9, 2020

My proposal is to close this issue as of now as I believe I have answered the question.

@alerque
Copy link
Member

alerque commented Nov 9, 2020

Just to expand on this a little: The issue with GhostWriter is most likely that the file type is not set to match the contents. No this color scheme (nor any color scheme) will not highlight things that are not defined in the file types' syntax. The scheme only adds colors to the syntax rules, it doesn't define the syntax rules.

@alerque alerque closed this as completed Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants