43 lines
1.8 KiB
HTML
Executable File
43 lines
1.8 KiB
HTML
Executable File
<link rel="stylesheet" href="/api/soft/CodeMirror/lib/codemirror.css">
|
|
<link rel="stylesheet" href="/api/soft/CodeMirror/theme/dracula.css">
|
|
|
|
|
|
|
|
<script src="/api/soft/CodeMirror/lib/codemirror.js"></script>
|
|
<script src="/api/soft/CodeMirror/mode/xml/xml.js"></script>
|
|
<script src="/api/soft/CodeMirror/mode/javascript/javascript.js"></script>
|
|
<script src="/api/soft/CodeMirror/mode/css/css.js"></script>
|
|
<script src="/api/soft/CodeMirror/addon/hint/show-hint.js"></script>
|
|
<script src="/api/soft/CodeMirror/mode/htmlmixed/htmlmixed.js"></script>
|
|
<script src="/api/soft/CodeMirror/mode/markdown/markdown.js"></script>
|
|
<script src="/api/soft/CodeMirror/addon/edit/matchbrackets.js"></script>
|
|
<script src="/api/soft/CodeMirror/addon/edit/closebrackets.js"></script>
|
|
{if ($mod=='html')}
|
|
<script src="/api/soft/CodeMirror/addon/selection/selection-pointer.js"></script>
|
|
<script src="/api/soft/CodeMirror/addon/edit/closetag.js"></script>
|
|
<script src="/api/soft/CodeMirror/addon/edit/matchtags.js"></script>
|
|
<script src="/api/soft/CodeMirror/mode/vbscript/vbscript.js"></script>
|
|
|
|
<script src="/api/soft/CodeMirror/html.php?el={$el|default:code}"></script>
|
|
{/if}
|
|
{if ($mod=='php')}
|
|
|
|
<script src="/api/soft/CodeMirror/mode/clike/clike.js"></script>
|
|
<script src="/api/soft/CodeMirror/mode/php/php.js"></script>
|
|
|
|
<script src="/api/soft/CodeMirror/php.php?el={$el|default:code}"></script>
|
|
{/if}
|
|
|
|
{if ($mod=='js')}
|
|
<script src="/api/soft/CodeMirror/addon/hint/javascript-hint.js"></script>
|
|
<script src="/api/soft/CodeMirror/js.php?el={$el|default:code}"></script>
|
|
{/if}
|
|
|
|
{if ($mod=='css')}
|
|
<link rel="stylesheet" href="/api/soft/CodeMirror/addon/hint/show-hint.css">
|
|
<script src="/api/soft/CodeMirror/addon/hint/css-hint.js"></script>
|
|
|
|
|
|
<script src="/api/soft/CodeMirror/css.php?el={$el|default:code}"></script>
|
|
{/if}
|