forked from 20xd6/simple_blog
Move Prism files to a properly spelled directory
Moved the Prism project files from /common/prisim/ to /common/prism/. Updated the code in /common/page_format.js that loads these files.
This commit is contained in:
parent
87a07aaf02
commit
d743fb297b
@ -10,9 +10,9 @@ function format_page(){//Set the title of the page based on the main header, <h1
|
|||||||
var script = document.createElement('script');
|
var script = document.createElement('script');
|
||||||
var style_sheet = document.createElement('link');
|
var style_sheet = document.createElement('link');
|
||||||
script.type = 'text/javascript';
|
script.type = 'text/javascript';
|
||||||
script.src = '/common/prisim/prism.js';
|
script.src = '/common/prism/prism.js';
|
||||||
style_sheet.type = 'text/css';
|
style_sheet.type = 'text/css';
|
||||||
style_sheet.href = '/common/prisim/prism.css';
|
style_sheet.href = '/common/prism/prism.css';
|
||||||
style_sheet.rel = 'stylesheet';
|
style_sheet.rel = 'stylesheet';
|
||||||
document.head.appendChild(script);
|
document.head.appendChild(script);
|
||||||
document.head.appendChild(style_sheet);
|
document.head.appendChild(style_sheet);
|
||||||
|
3
common/prism/prism.css
Normal file
3
common/prism/prism.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/* PrismJS 1.25.0
|
||||||
|
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+apacheconf+basic+batch+c+csharp+cpp+java+markup-templating+php+php-extras+powershell+python+vbnet+visual-basic */
|
||||||
|
code[class*=language-],pre[class*=language-]{color:#ccc;background:0 0;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}
|
21
common/prism/prism.js
Normal file
21
common/prism/prism.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user