-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Showing invisible characters #4
Comments
The problem with this is that it breaks copying the code. I really don’t want to have to add a separate view mode for copying code, like some other highlighters. :( |
What exactly would break copying? There would be only some CSS styles like backgrounds (like small light gray circle for nbsp), I don't think those would break anything. |
Oh, that’s what you were thinking. I was thinking of using unicode characters to show it. |
But we can use gradients! Like this — http://dabblet.com/gist/3092469 — it's very quick rough example, but you can get the idea. |
The problem with gradients is that they don't inherit the text-shadow and they look aliased. |
Btw, not sure if you noticed (or if I wrote it elsewhere), but I've coded a first version of this plugin: http://leaverou.github.com/prism/plugins/show-invisibles/ |
While this can be easy, but there are few issues to thought on:
tab symbol
? While highlighting the non-breakable spaces would be always good, highlighting thetabs
would be trashy for indentations that use them.The text was updated successfully, but these errors were encountered: