Skip to content

Instantly share code, notes, and snippets.

@shreyasminocha
Created April 23, 2020 15:40
Show Gist options
  • Save shreyasminocha/a2df081273ada0fec8b3d8faa6941e7b to your computer and use it in GitHub Desktop.
Save shreyasminocha/a2df081273ada0fec8b3d8faa6941e7b to your computer and use it in GitHub Desktop.
Prism.js regex highlighting stylesheet
.token.language-regex {
color: #4d4d4d;
}
.token.quantifier {
color: #58f;
}
.token.escape,
.token.special-escape {
color: #c0c;
}
.token.charclass,
.token.charset-punctuation {
color: #d70;
}
.token.anchor {
color: #840;
}
.token.group {
color: #0a0;
/* background: rgba(0, 238, 0, 0.11); */
}
.token.backreference,
.token.alternation {
color: #0a0;
}
.token.charset {
background: rgba(255, 238, 0, 0.3);
}
.token.regex-delimiter,
.token.regex-flags {
color: #b7bcc0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment