Skip to content
This repository has been archived by the owner on Jun 20, 2020. It is now read-only.

Toggles

Rob Garrison edited this page Feb 22, 2016 · 7 revisions

Home | Toggles | Install

GitHub-Dark Script currently includes three toggles:

Code Wrap Toggle

All code blocks will have an attached icon in the upper right corner (2015-12-17 22_37_17-ideas issue 1 stylishthemes_github-dark-script)

Clicking this icon will override the global code wrap setting to either wrap or unwrap the contained code.

While hovering the icon, its color will change:

  • Green: Code wrapping is enabled.
  • Red: Code wrapping is disabled.

Clicking on the icon will toggle code wrapping for only that block of code.

code-wrap

Monospace font Toggle

Every comment block will have a monospace font toggle button added to the toolbar.

2016-02-21 19_53_09-toggle monospace button issue 8 stylishthemes_github-dark-script

Clicking the toggle button will change the textarea font from the default font to a monospaced font.

When the monospace font is applied, the following css is applied:

font-family: Menlo, Inconsolata, "Droid Mono", monospace !important; font-size: 1em !important;

Diff File View Toggle

When viewing a commit diff, a file toggle button is added to each file header.

diff-collapse-toggle

Click on the toggle button to either collapse or expand that file block, or use Shift + Click to collapse or expand all file blocks.

diff-collapse

Try it on this page!

Clone this wiki locally