Compare commits

...

2 Commits

Author SHA1 Message Date
d2bf93abe6 add pygments to requirements.txt 2025-10-13 00:14:28 +03:00
ef95da4d47 mention languages for code blocks in babycode help 2025-10-12 23:57:37 +03:00
2 changed files with 2 additions and 0 deletions

View File

@@ -139,6 +139,7 @@
{{ ('[code]%s[/code]' % code) | babycode | safe }}
<p>Optionally, you can enable syntax highlighting by specifying the language in the attribute like this: <code class="inline-code">[code=gdscript]</code></p>
{{ ('[code=gdscript]%s[/code]' % code) | babycode | safe}}
<p>A full list of languages that can be highlighted is available <a href="https://pygments.org/languages/" target=_blank>here</a> (the short names column).</p>
<p>Inline code tags look like this: {{ '[code]Inline code[/code]' | babycode | safe }}</p>
<p>Babycodes are not parsed inside code blocks.</p>
</section>

View File

@@ -9,6 +9,7 @@ itsdangerous==2.2.0
Jinja2==3.1.6
MarkupSafe==3.0.2
pycparser==2.22
Pygments==2.19.2
python-dotenv==1.1.1
python-slugify==8.0.4
text-unidecode==1.3