Add site syntax highlighting
This commit is contained in:
@@ -12,9 +12,12 @@ import ManualLayout from '../layouts/ManualLayout.astro';
|
||||
</div>
|
||||
<p id="status" class="status">Loading WASM...</p>
|
||||
<div class="playground-grid">
|
||||
<label class="pane">
|
||||
<label class="pane input-pane">
|
||||
<span>Input</span>
|
||||
<textarea id="source" spellcheck="false"></textarea>
|
||||
<div class="editor-wrap">
|
||||
<pre id="source-highlight" aria-hidden="true"></pre>
|
||||
<textarea id="source" spellcheck="false"></textarea>
|
||||
</div>
|
||||
</label>
|
||||
<section class="pane output-pane">
|
||||
<span>Output</span>
|
||||
@@ -22,5 +25,7 @@ import ManualLayout from '../layouts/ManualLayout.astro';
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
<script type="module" src="../scripts/playground.js"></script>
|
||||
<script>
|
||||
import '../scripts/playground.js';
|
||||
</script>
|
||||
</ManualLayout>
|
||||
|
||||
Reference in New Issue
Block a user