change language for highlight.js
This commit is contained in:
parent
9cf4401f13
commit
8740e54dfd
@ -37,4 +37,20 @@ pre code.hljs {
|
||||
.hljs-function { color: #dcdcaa; }
|
||||
.hljs-built_in { color: #4ec9b0; }
|
||||
.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;
|
||||
}
|
||||
@ -15,37 +15,20 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
</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">
|
||||
{{ logs | safe }}
|
||||
</code>
|
||||
</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;">
|
||||
<code class="language-bash">
|
||||
{{ logs | safe }}
|
||||
</code>
|
||||
</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>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user