Skip to content

Instantly share code, notes, and snippets.

@antife-yinyue
Created February 22, 2013 05:32
Show Gist options
  • Save antife-yinyue/5010969 to your computer and use it in GitHub Desktop.
Save antife-yinyue/5010969 to your computer and use it in GitHub Desktop.
Highlight styles in GitHub
pre, code {
font-family: Consolas, 'Liberation Mono', Courier, monospace;
}
.highlight {
pre {
padding: 6px 10px;
border: 1px solid #ccc;
border-radius: 3px;
background-color: #f8f8f8;
overflow: auto;
}
.err {
color: #a61717;
background-color: #e3d2d2;
}
.k, .o, .gs, .kc, .kd, .kn, .kp, .kr, .ow {
font-weight: bold;
}
.cp {
color: #999;
font-weight: bold;
}
.gu {
color: #800080;
font-weight: bold;
}
.kt, .nc {
color: #458;
font-weight: bold;
}
.ne, .nf {
color: #900;
font-weight: bold;
}
.ge {
font-style: italic;
}
.c, .cm, .c1 {
color: #998;
font-style: italic;
}
.cs {
color: #999;
font-weight: bold;
font-style: italic;
}
.gd {
color: #000;
background-color: #fdd;
}
.gd .x {
color: #000;
background-color: #faa;
}
.gi {
color: #000;
background-color: #dfd;
}
.gi .x {
color: #000;
background-color: #afa;
}
.gc {
color: #999;
background-color: #eaf2f5;
}
.go {
color: #888;
}
.n {
color: #333;
}
.w {
color: #bbb;
}
.gr, .gt {
color: #a00;
}
.gh, .bp {
color: #999;
}
.gp, .nn {
color: #555;
}
.m, .mf, .mh, .mi, .mo, .il {
color: #099;
}
.s, .sb, .sc, .sd, .s2, .se, .sh, .si, .sx, .s1 {
color: #d14;
}
.na, .no, .nv, .vc, .vg, .vi {
color: #008080;
}
.ni {
color: #800080;
}
.nb {
color: #0086b3;
}
.nt {
color: #000080;
}
.sr {
color: #009926;
}
.ss {
color: #990073;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment