Sublime Forum

Is there a plugin to highlight Unicode homoglyphs (e.g., Cyrillic or Greek letters)?

#1

Hi everyone,

I’m using the Gremlins plugin to detect invisible or suspicious whitespace in Sublime Text (like non-breaking spaces, zero-width spaces, etc.), and it works well for that.

However, I’ve recently run into a different kind of issue: visually deceptive Unicode characters that look like normal Latin letters but are actually from other scripts — for example:

Pаypаl Verificаtiоn Reqυіred

In this line:

  • The а is Cyrillic small a (U+0430), not Latin.
  • The υ is Greek upsilon (U+03C5).
  • The і is Cyrillic small i (U+0456).

These kinds of characters can easily go unnoticed in code or text, especially in mixed-language files, and could potentially be used to confuse readers or bypass filters.

My question:
Is there a plugin (like Gremlins or something similar) that can detect and highlight these kinds of homoglyphs or out-of-place Unicode characters? Or has anyone implemented something like this in a custom plugin?

Appreciate any tips or suggestions!

Thanks!

1 Like

#2

I don’t see any existing package which supports this exact use case…
It may be possible to combine the functionality of

as they both look like reasonably simple plugins

1 Like