react-syntax-highlighter
Version:
syntax highlighting component for react with prismjs or highlightjs ast using inline styles
184 lines (183 loc) • 3.8 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _default = exports["default"] = {
"code[class*=\"language-\"]": {
"color": "#393A34",
"fontFamily": "\"Consolas\", \"Bitstream Vera Sans Mono\", \"Courier New\", Courier, monospace",
"direction": "ltr",
"textAlign": "left",
"whiteSpace": "pre",
"wordSpacing": "normal",
"wordBreak": "normal",
"fontSize": ".9em",
"lineHeight": "1.2em",
"MozTabSize": "4",
"OTabSize": "4",
"tabSize": "4",
"WebkitHyphens": "none",
"MozHyphens": "none",
"msHyphens": "none",
"hyphens": "none"
},
"pre[class*=\"language-\"]": {
"color": "#393A34",
"fontFamily": "\"Consolas\", \"Bitstream Vera Sans Mono\", \"Courier New\", Courier, monospace",
"direction": "ltr",
"textAlign": "left",
"whiteSpace": "pre",
"wordSpacing": "normal",
"wordBreak": "normal",
"fontSize": ".9em",
"lineHeight": "1.2em",
"MozTabSize": "4",
"OTabSize": "4",
"tabSize": "4",
"WebkitHyphens": "none",
"MozHyphens": "none",
"msHyphens": "none",
"hyphens": "none",
"padding": "1em",
"margin": ".5em 0",
"overflow": "auto",
"border": "1px solid #dddddd",
"backgroundColor": "white"
},
"pre > code[class*=\"language-\"]": {
"fontSize": "1em"
},
"pre[class*=\"language-\"]::-moz-selection": {
"background": "#b3d4fc"
},
"pre[class*=\"language-\"] ::-moz-selection": {
"background": "#b3d4fc"
},
"code[class*=\"language-\"]::-moz-selection": {
"background": "#b3d4fc"
},
"code[class*=\"language-\"] ::-moz-selection": {
"background": "#b3d4fc"
},
"pre[class*=\"language-\"]::selection": {
"background": "#b3d4fc"
},
"pre[class*=\"language-\"] ::selection": {
"background": "#b3d4fc"
},
"code[class*=\"language-\"]::selection": {
"background": "#b3d4fc"
},
"code[class*=\"language-\"] ::selection": {
"background": "#b3d4fc"
},
":not(pre) > code[class*=\"language-\"]": {
"padding": ".2em",
"paddingTop": "1px",
"paddingBottom": "1px",
"background": "#f8f8f8",
"border": "1px solid #dddddd"
},
"comment": {
"color": "#999988",
"fontStyle": "italic"
},
"prolog": {
"color": "#999988",
"fontStyle": "italic"
},
"doctype": {
"color": "#999988",
"fontStyle": "italic"
},
"cdata": {
"color": "#999988",
"fontStyle": "italic"
},
"namespace": {
"Opacity": ".7"
},
"string": {
"color": "#e3116c"
},
"attr-value": {
"color": "#e3116c"
},
"punctuation": {
"color": "#393A34"
},
"operator": {
"color": "#393A34"
},
"entity": {
"color": "#36acaa"
},
"url": {
"color": "#36acaa"
},
"symbol": {
"color": "#36acaa"
},
"number": {
"color": "#36acaa"
},
"boolean": {
"color": "#36acaa"
},
"variable": {
"color": "#36acaa"
},
"constant": {
"color": "#36acaa"
},
"property": {
"color": "#36acaa"
},
"regex": {
"color": "#36acaa"
},
"inserted": {
"color": "#36acaa"
},
"atrule": {
"color": "#00a4db"
},
"keyword": {
"color": "#00a4db"
},
"attr-name": {
"color": "#00a4db"
},
".language-autohotkey .token.selector": {
"color": "#00a4db"
},
"function": {
"color": "#9a050f",
"fontWeight": "bold"
},
"deleted": {
"color": "#9a050f"
},
".language-autohotkey .token.tag": {
"color": "#9a050f"
},
"tag": {
"color": "#00009f"
},
"selector": {
"color": "#00009f"
},
".language-autohotkey .token.keyword": {
"color": "#00009f"
},
"important": {
"fontWeight": "bold"
},
"bold": {
"fontWeight": "bold"
},
"italic": {
"fontStyle": "italic"
}
};