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

User customizable ambiguous characters for Unicode Highlight #139344

Open
nisshymura opened this issue Dec 17, 2021 · 3 comments
Open

User customizable ambiguous characters for Unicode Highlight #139344

nisshymura opened this issue Dec 17, 2021 · 3 comments
Assignees
Labels
feature-request Request for new features or functionality unicode-highlight
Milestone

Comments

@nisshymura
Copy link

I would like to set my own customized list of additional abmiguous unicode characters to be highlighted.

As a person writing CJK characters daily, I have been using Highlight Bad Chars extension to avoid the annoyance that arises from the ambiguity of unicode glyphs. I'm very happy to see the latest vscode comes with a similar feature integrated, but I feel sorry to find that the list of ambiguous characters are not customizable.
There are lots of candidates of possibly confusing sets of characters, so it would be better to ask the users to define the list of characters at their disposal.

@alexdima alexdima assigned hediet and unassigned alexdima Dec 17, 2021
@hediet hediet added feature-request Request for new features or functionality unicode-highlight labels Dec 17, 2021
@hediet
Copy link
Member

hediet commented Dec 17, 2021

Thanks for reaching out! How many custom confusable characters do you have, that you would like to add?

@hediet hediet added this to the Backlog milestone Dec 17, 2021
@nisshymura
Copy link
Author

Currently I'm registering the following characters in the setting of Highlight Bad Chars extension. (I hope the unicode characters are correctly displayed.)

"highlight-bad-chars.additionalUnicodeChars": 
    [
        "¥/", 
        ";",
        "”“",
        "〜@#$%&*^_<>|", 
        "(){}",  
    ],

They are a part of unicode variants of ASCII characters:

  • parentheses (){}[]
  • punctuations ;:,.
  • quotations "'`'
  • and other symbols found on US keyboard ~!@#$%^&*()<>?

I don't like to have them all highlighted, because some of the unicode variants are of daily use in CJK text. (The screen would look too busy, if they are all highlighted.)

@hdodov
Copy link

hdodov commented Apr 5, 2022

I think that quote characters like U+201C and U+201D are a must-have. They sometimes appear when you paste code in Jira. Then, if someone copies that code from Jira, they get the wrong quote characters unknowingly, which break HTML. It'd be great if they're highlighted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality unicode-highlight
Projects
None yet
Development

No branches or pull requests

4 participants