Prism added
This commit is contained in:
1 parent
12fe12f839
commit
b4a4af89da
6 files changed
+2089
-1223
No files matched your search
@@ -0,0 +1,143 @@
|
||||
/* PrismJS 1.22.0
|
||||
https://prismjs.com/download.html#themes=prism&languages=markup+clike+javascript+json+json5+jsonp */
|
||||
/**
|
||||
* prism.js default theme for JavaScript, CSS and HTML
|
||||
* Based on dabblet (http://dabblet.com)
|
||||
* @author Lea Verou
|
||||
*/
|
||||
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
color: black;
|
||||
background: none;
|
||||
text-shadow: 0 1px white;
|
||||
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-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
|
||||
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
||||
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
@media print {
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
pre[class*="language-"] {
|
||||
padding: 1em;
|
||||
margin: .5em 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
:not(pre) > code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
background: #f5f2f0;
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
:not(pre) > code[class*="language-"] {
|
||||
padding: .1em;
|
||||
border-radius: .3em;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.token.comment,
|
||||
.token.prolog,
|
||||
.token.doctype,
|
||||
.token.cdata {
|
||||
color: slategray;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.token.namespace {
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
.token.property,
|
||||
.token.tag,
|
||||
.token.boolean,
|
||||
.token.number,
|
||||
.token.constant,
|
||||
.token.symbol,
|
||||
.token.deleted {
|
||||
color: #905;
|
||||
}
|
||||
|
||||
.token.selector,
|
||||
.token.attr-name,
|
||||
.token.string,
|
||||
.token.char,
|
||||
.token.builtin,
|
||||
.token.inserted {
|
||||
color: #690;
|
||||
}
|
||||
|
||||
.token.operator,
|
||||
.token.entity,
|
||||
.token.url,
|
||||
.language-css .token.string,
|
||||
.style .token.string {
|
||||
color: #9a6e3a;
|
||||
/* This background color was intended by the author of this theme. */
|
||||
background: hsla(0, 0%, 100%, .5);
|
||||
}
|
||||
|
||||
.token.atrule,
|
||||
.token.attr-value,
|
||||
.token.keyword {
|
||||
color: #07a;
|
||||
}
|
||||
|
||||
.token.function,
|
||||
.token.class-name {
|
||||
color: #DD4A68;
|
||||
}
|
||||
|
||||
.token.regex,
|
||||
.token.important,
|
||||
.token.variable {
|
||||
color: #e90;
|
||||
}
|
||||
|
||||
.token.important,
|
||||
.token.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
.token.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.token.entity {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -10,10 +10,12 @@
|
||||
<link rel="stylesheet" href="docs.css" type="text/css" charset="utf-8" />
|
||||
<link rel="stylesheet" href="context-menu.css" type="text/css" charset="utf-8" />
|
||||
<link rel="stylesheet" href="font-awasome.css" type="text/css" />
|
||||
<link rel="stylesheet" href="prism.css" type="text/css" />
|
||||
<link rel="shortcut icon" type="image/png/ico" href="Images/favicon.ico" />
|
||||
<script type="text/javascript" src="WebServer/require.js"></script>
|
||||
<script type="text/javascript" src="AppPreLoader.js"></script>
|
||||
<script src="externalScripts/CCapture.all.min.js"></script>
|
||||
<script src="externalScripts/prism.js"></script>
|
||||
|
||||
<!-- Documentation Style Sheets -->
|
||||
<!-- -->
|
||||
@@ -116,8 +118,8 @@
|
||||
<li class="menu-item" onClick="window.contextMenu.toImportant()">Important Style</li>
|
||||
<li class="menu-item" onClick="window.contextMenu.toSuccess()">Success Style</li>
|
||||
<li class="menu-item" onClick="window.contextMenu.toList()">List Style</li>
|
||||
<li class="menu-item" onClick="window.contextMenu.toJsCode()">JS Code Style</li>
|
||||
<li class="menu-item" onClick="window.contextMenu.toJsonCode()">JSON Code Style</li>
|
||||
<li class="menu-item" onClick="window.contextMenu.toJavascript()">JS Code Style</li>
|
||||
<li class="menu-item" onClick="window.contextMenu.toJson()">JSON Code Style</li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -791,6 +791,13 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
|
||||
sendStyleSheet('font-awasome.css')
|
||||
}
|
||||
break
|
||||
|
||||
case 'prism.css':
|
||||
{
|
||||
sendStyleSheet('prism.css')
|
||||
}
|
||||
break
|
||||
|
||||
case 'ExecuteTerminalCommand':
|
||||
{
|
||||
let command = unescape(requestParameters[2])
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -52,8 +52,8 @@ function newSuperalgosDocSpace() {
|
||||
function setUpContextMenu() {
|
||||
window.contextMenu = {
|
||||
editParagraph: editParagraph,
|
||||
toJsCode: toJsCode,
|
||||
toJsonCode: toJsonCode,
|
||||
toJavascript: toJavascript,
|
||||
toJson: toJson,
|
||||
toText: toText,
|
||||
toTitle: toTitle,
|
||||
toSubtitle: toSubtitle,
|
||||
@@ -93,6 +93,12 @@ function newSuperalgosDocSpace() {
|
||||
if (selectedParagraph.id.indexOf('warning') >= 0) {
|
||||
extraClassName = ' ' + 'docs-alert-warning'
|
||||
}
|
||||
if (selectedParagraph.id.indexOf('javascript') >= 0) {
|
||||
extraClassName = ' ' + 'language-javascript'
|
||||
}
|
||||
if (selectedParagraph.id.indexOf('json') >= 0) {
|
||||
extraClassName = ' ' + 'language-json'
|
||||
}
|
||||
|
||||
textArea = document.createElement('textarea');
|
||||
textArea.id = "textArea";
|
||||
@@ -109,11 +115,11 @@ function newSuperalgosDocSpace() {
|
||||
}
|
||||
}
|
||||
|
||||
function toJsCode() {
|
||||
function toJavascript() {
|
||||
|
||||
}
|
||||
|
||||
function toJsonCode() {
|
||||
function toJson() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user