Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

pre { tab-size: 4 } #170

Description

@Rich-Harris

For some unfathomable reason, browsers render tabs as 8 spaces. Even among the minority of developers who agree that tabs > spaces, I've yet to find anyone who thinks that makes sense.

Happily, most browsers allow you to set the tab width with the CSS tab-size property. Adding something like the following to the CSS used on github.com and gist.github.com would make code previews much more readable:

pre {
  -moz-tab-size: 4;
  tab-size: 4;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions