change language for highlight.js

This commit is contained in:
oberon 2026-02-14 14:01:22 +01:00
parent 9cf4401f13
commit 8740e54dfd
2 changed files with 22 additions and 23 deletions

View File

@ -37,4 +37,20 @@ pre code.hljs {
.hljs-function { color: #dcdcaa; } .hljs-function { color: #dcdcaa; }
.hljs-built_in { color: #4ec9b0; } .hljs-built_in { color: #4ec9b0; }
.hljs-symbol { color: #d16969; } .hljs-symbol { color: #d16969; }
.hljs-literal { color: #d16969; } .hljs-literal { color: #d16969; }
pre code {
counter-reset: line;
}
pre code span {
counter-increment: line;
}
/* Optional: Zeilennummern (braucht CSS) */
pre code::before {
content: counter(line) " ";
display: inline-block;
width: 3em;
text-align: right;
color: #6a9955;
user-select: none;
}

View File

@ -15,37 +15,20 @@
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
<!-- <!-- -->
<pre class="bg-dark text-light p-4 rounded" style="max-height: 70vh; overflow-y: auto; font-size: 0.95rem;"> <pre class="bg-dark text-light p-4 rounded hljs" style="max-height: 70vh; overflow-y: auto; font-size: 0.95rem; white-space: pre-wrap; word-wrap: break-word; line-height: 1.5;">
<code class="language-log"> <code class="language-log">
{{ logs | safe }} {{ logs | safe }}
</code> </code>
</pre> </pre>
-->
<!-- Zeilennummern + Wort-Wrap --> <!-- Zeilennummern + Wort-Wrap
<pre class="bg-dark text-light p-4 rounded hljs" style="max-height: 70vh; overflow-y: auto; font-size: 0.95rem; white-space: pre-wrap; word-wrap: break-word; line-height: 1.5;"> <pre class="bg-dark text-light p-4 rounded hljs" style="max-height: 70vh; overflow-y: auto; font-size: 0.95rem; white-space: pre-wrap; word-wrap: break-word; line-height: 1.5;">
<code class="language-bash"> <code class="language-bash">
{{ logs | safe }} {{ logs | safe }}
</code> </code>
</pre> </pre>
-->
<style>
pre code {
counter-reset: line;
}
pre code span {
counter-increment: line;
}
/* Optional: Zeilennummern (braucht CSS) */
pre code::before {
content: counter(line) " ";
display: inline-block;
width: 3em;
text-align: right;
color: #6a9955;
user-select: none;
}
</style>
<a href="{{ url_for('admin') }}" class="btn btn-secondary mt-3">Zurück zum Admin</a> <a href="{{ url_for('admin') }}" class="btn btn-secondary mt-3">Zurück zum Admin</a>
</div> </div>