mirror of
https://github.com/cuigh/swirl
synced 2025-01-02 17:16:37 +00:00
Add syntax highlight on new archive page
This commit is contained in:
parent
6dfb22dd11
commit
659e32438c
@ -1,5 +1,15 @@
|
|||||||
{{ extends "../../_layouts/default" }}
|
{{ extends "../../_layouts/default" }}
|
||||||
|
|
||||||
|
{{ block style() }}
|
||||||
|
<link rel="stylesheet" href="/codemirror/codemirror.css?v=5.30">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ block script() }}
|
||||||
|
<script src="/codemirror/codemirror.js?v=5.30"></script>
|
||||||
|
<script src="/codemirror/mode/yaml.js?v=5.30"></script>
|
||||||
|
<script>var editor = CodeMirror.fromTextArea(document.getElementById("txt-content"), {lineNumbers: true});</script>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ block body() }}
|
{{ block body() }}
|
||||||
<section class="hero is-info">
|
<section class="hero is-info">
|
||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
@ -37,7 +47,7 @@
|
|||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label">Content</label>
|
<label class="label">Content</label>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<textarea name="content" class="textarea" rows="20" placeholder="Compose file content" data-v-rule="native" required></textarea>
|
<textarea id="txt-content" name="content" class="textarea" rows="20" placeholder="Compose file content" data-v-rule="native" required></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field is-grouped">
|
<div class="field is-grouped">
|
||||||
|
Loading…
Reference in New Issue
Block a user