Skip to content

Instantly share code, notes, and snippets.

@evanlucas
Created June 2, 2015 22:55
Show Gist options
  • Save evanlucas/ddbe24aa5ffbfdaac780 to your computer and use it in GitHub Desktop.
Save evanlucas/ddbe24aa5ffbfdaac780 to your computer and use it in GitHub Desktop.
atom highlights with line numbering
.editor {
counter-reset: linenumber;
font-size: 16px;
font-family: Monaco;
}
.editor > .line {
counter-increment: linenumber;
}
.editor > .line:before {
content: counter(linenumber);
padding-right: 0.5em;
margin-right: 0.5em;
text-align: right;
display: inline-block;
width: 40px;
border-right: 1px solid #ddd;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment