Skip to content

Instantly share code, notes, and snippets.

@glebm
Last active September 26, 2017 11:17
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save glebm/5b6c4517322193fbc51090dc3b57a44a to your computer and use it in GitHub Desktop.
Save glebm/5b6c4517322193fbc51090dc3b57a44a to your computer and use it in GitHub Desktop.
Render whitespace on GitHub
@leonklingele
Copy link

This is awesome in combination with Tampermonkey to automatically apply this style every time.

@glebm
Copy link
Author

glebm commented Sep 6, 2017

@leonklingele
Copy link

@glebm awesome! While this displays the code as expected, copy and pasting code also copies the interpunct character.
Is there some way to prevent this?

@glebm
Copy link
Author

glebm commented Sep 9, 2017

@leonklingele Noticed this myself as well. This is fixed now, along with re-rendering on pjax update and diff support in v1.2.0!

@gregid
Copy link

gregid commented Sep 13, 2017

Thanks for the script.

Works fine with Greasemonkey, unfortunately doesn't work with Violentmonkey (haven't checked other script managers)

@glebm
Copy link
Author

glebm commented Sep 14, 2017

@gregid It doesn't work with Violentmonkey only on Firefox. This is due to a Firefox bug: violentmonkey/violentmonkey#173

@david-trejo-ck
Copy link

david-trejo-ck commented Sep 14, 2017

I just used this at work! It worked great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment