Skip to content

Instantly share code, notes, and snippets.

@torcado194
Created July 14, 2019 20:17
Show Gist options
  • Save torcado194/d30a77d6f9c2c2386f00d1b70c540053 to your computer and use it in GitHub Desktop.
Save torcado194/d30a77d6f9c2c2386f00d1b70c540053 to your computer and use it in GitHub Desktop.
(function() {
function addCSS(css){
let head = document.getElementsByTagName('head')[0] || document.getElementsByTagName('html')[0];
if (!head) {
return;
}
let style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addCSS(`
.CodeMirror-code .cm-variable-2 {
color: #9bf0f9;
}
.CodeMirror-code .cm-def {
color: #76f3b5;
}
.CodeMirror-code .cm-meta {
color: #9ea9ff;
}
.CodeMirror-code .cm-keyword {
color: #ad89e4;
}
.CodeMirror-code .cm-operator {
color: #ff6897;
}
.CodeMirror-code .cm-property {
color: #7d9eff;
}
.CodeMirror-code .cm-string-2{
color: #ff8762;
}
`);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment