StylishThemes / GitHub Toggle Code Wrap


Version: 1.1.5+f37497a updated

Summary: A userscript that adds a code wrap toggle button


License: MIT

All code blocks will have an attached icon in the upper right corner ()

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.

This code is integrated into the GitHub Dark Script; it is available here separately. There is no need to install both.


Rating: 0