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

Highlighting custom characters #2575

Closed
Jomy10 opened this issue May 25, 2022 · 3 comments
Closed

Highlighting custom characters #2575

Jomy10 opened this issue May 25, 2022 · 3 comments
Labels
C-enhancement Category: Improvements

Comments

@Jomy10
Copy link
Contributor

Jomy10 commented May 25, 2022

Describe your feature request

It would be nice if we could add highlighting for certain characters in any file type (so they would be highlighted in every programming language).

Why would this be useful?
I accidentally type a non-breaking space a lot, and errors regarding this character could be easily prevented if there was a visual separation from non-breaking spaces and regular spaces.

@Jomy10 Jomy10 added the C-enhancement Category: Improvements label May 25, 2022
@the-mikedavis
Copy link
Member

Visible whitespace has been merged #1802 but isn't in the latest release yet. This follow-up PR added support for non-breaking space: #2322. With these you could configure rendering just for non-breaking space like so:

[editor.whitespace.render]
nbsp = "all"

@Jomy10
Copy link
Contributor Author

Jomy10 commented May 25, 2022

Didn't find those while searching. Awesome to see this has already been updated.

I'll be waiting for the next release then.

@mandarvaze
Copy link

I have the latest release, but unable to use [editor.whitespace]
I opened issue #2614

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

3 participants