Added syntax highlighing for |code| cards.
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
{% if card.type == 1 %}
|
||||
{{ card.back|replace("\n", "<br />")|safe }}
|
||||
{% else %}
|
||||
<pre>{{ card.back|safe }}</pre>
|
||||
<pre><code>{{ card.back|safe }}</code></pre>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
|
||||
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
|
||||
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}"/>
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='hightlight-theme-github.css') }}" />
|
||||
<script src="{{ url_for('static', filename='highlight.pack.js') }}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<pre>{{ card.back|safe }}</pre>
|
||||
<pre><code>{{ card.back|safe }}</code></pre>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -100,4 +100,4 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user