-
-
Notifications
You must be signed in to change notification settings - Fork 165
GitHub code show whitespace
Rob Garrison edited this page Oct 24, 2022
·
47 revisions
A userscript that shows whitespace (space, tabs and carriage returns) in code blocks
- All spaces and tabs are shown.
- It works on repo file and diff-view pages, and gist pages.
- A toggle button is added to each file block and allows you to enable or disable the whitespace view.
- It does not interfere with the selection, copying & pasting of the code.
-
A CSS tab-size of.2
is set by this script. This will be overridden by GitHub-Dark tab settings -
This script is not fully compatible with the GitHub code folding userscript as they interfere with each other. - Click this link to install from GitHub; or, install from GreasyFork or OpenUserJS.
- Update dependencies
- Update mutation script.
- Update mutation script.
- Fix PR button alignment. Closes issue #91.
- No button for new gists.
- Update selectors for GitHub changes.
- Fix alignment in new diff layout.
- Hide extra
<br>
in code. Fixes issue #65.
- Update GitHub icon.
- Update mutation script.
- Update mutation script.
- Hide extra leading space in diffs. Partially revert https://github.com/Mottie/GitHub-userscripts/commit/813ca673488b0d67cd347bc7b8f4d5e40d2ec787.
- Only hide first wrapped space in expanded blocks.
- Fix JS error. Only seen when used with a certain chrome extension.
- Diffs signs now use a pseudo-element.
- Add show whitespace option. Closes issue #53.
- Speed up DOM interaction. Start using
requestAnimationFrame
with a generator. - Fix GM command issues & other silly mistakes.
- Update mutation script.
- Update mutation script.
- Update mutation script url.
- Update GM4 polyfill.
- Tooltips show below sticky header.
- Add GM4 polyfill & update assets.
- Use updated mutations script. Fixes issue #33.
- Use smaller icon.
- Hide leading space in diff. See issue #27.
- Fix expanded & diff rows.
- Fix weird alignment issues in markdown files. See issue #27.
- Fix alignment for no-extension files. See issue #27.
- Remove all tab-size adjustments.
- Show all whitespace. Fixes issue #27.
- Include trailing whitespace.
- Properly add whitespace to all lines.
- Change license to MIT.
- Update mutation url.
- Switch to using mutations.js.
- Add to gist pages.
- Initial commit