Skip to content

GitHub Code Wrap by stylishthemes

Imported and mirrored from https://raw.githubusercontent.com/StylishThemes/GitHub-code-wrap/master/github-code-wrap.user.css

Details

Authorstylishthemes

LicenseCC-BY-SA-4.0

Created

Updated

Categorygithub

Statistics

Learn how we calculate statistics in the FAQ.

Total views

Total installs

Weekly installs

Weekly updates

Description

Userstyle to wrap long code lines on GitHub

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         GitHub Code Wrap
@version      1.0.11
@description  Userstyle to wrap long code lines on GitHub
@namespace    StylishThemes
@author       StylishThemes
@homepageURL  https://github.com/StylishThemes/GitHub-code-wrap
@supportURL   https://github.com/StylishThemes/GitHub-code-wrap/issues
@license      CC-BY-SA-4.0
@preprocessor uso
==/UserStyle== */
@-moz-document domain("github.com"), domain("gist.github.com") {
  .blob-code-inner, .markdown-body pre > code, .markdown-body .highlight > pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
  }
  /* GitHub Bug: Enable wrapping of long code lines */
  body:not(.nowrap) .blob-code-inner,
  body:not(.nowrap) .markdown-body pre > code,
  body:not(.nowrap) .markdown-body .highlight > pre {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    display: block !important;
  }
  body:not(.nowrap) td.blob-code-inner {
    display: table-cell !important;
  }
}

Reviews

No reviews yet.