Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork178
GitHub indent comments
Rob Garrison edited this pageOct 24, 2022 ·20 revisions
A userscript that allows you to indent & outdent blocks in the comment editor
- It only works on issue & gist comment pages.
- Click on the "Indent" button or theTab key to add a set number of spaces to the left of the selected text.
- Click on the "Outdent" button orShift+Tab to remove zero to the set number of spaces to the left of the selected text.
- If no text is selected, the set number of spaces is added or removed to the right of the cursor.
- Use the userscript addon to change the set number of spaces (see screenshot below). It is set to
2spaces by default. - Clickthis link to install from GitHub; or, install fromGreasyFork orOpenUserJS.


* NOTES *
- The "Toggle monospaced font" can be added by installing theuserscript; or, install theGitHub-Dark Script which adds multiple scripts & a dark theme.
- The default of two spaces are being added & removed in the above screenshot.
- Update dependencies.
- Update styling & code.
- Update mutation script.
- Update mutation script.
- Update GitHub icon.
- Update mutation script.
- Update mutation script.
- Update mutation script.
- Update mutation script.
- Update mutation script url.
- Update assets.
- Update mutation script url.
- Change license to MIT.
- Update mutation url.
- Switch to using mutations.js.
- Use pjax event & move caret code.
- Set textarea tab size.
- Initial commit