GitHub Code Wrap by stylishthemes

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

Homepage Install Get Stylus Write a review

Details

Authorstylishthemes

LicenseCC-BY-SA-4.0

Created atApril 03, 2021 00:40

Updated atApril 03, 2021 00:40

Applies toGitHub

Statistics

Learn how we calculate statistics in the FAQ.

Total views57

Total installs60

Weekly installs7

Weekly updates6

Description

Userstyle to wrap long code lines on GitHub

Notes

Userstyle doesn't have notes.

History

Daily snapshots of style statistics.

2021-07-072021-07-142021-07-202021-07-272021-08-022021-08-092021-08-152021-08-222021-08-282021-09-042021-09-102021-09-16Date0.000.751.502.253.003.754.505.256.00Daily countDaily installsDaily updatesDaily views
2021-07-072021-07-142021-07-202021-07-272021-08-022021-08-092021-08-152021-08-222021-08-282021-09-042021-09-102021-09-16Date0.007.4014.8022.2029.5036.9044.3051.7059.00Total countTotal installsTotal views

Source code

/* ==UserStyle==
@name         GitHub Code Wrap
@version      1.0.10
@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
@updateURL    https://raw.githubusercontent.com/StylishThemes/GitHub-code-wrap/master/github-code-wrap.user.css
@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;
    word-break: break-all !important;
    overflow-wrap: break-word !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;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    display: block !important;
  }
  body:not(.nowrap) td.blob-code-inner {
    display: table-cell !important;
  }
}

Reviews

No reviews yet.