mention languages for code blocks in babycode help

This commit is contained in:
2025-10-12 23:57:37 +03:00
parent 661d1ee1b1
commit ef95da4d47

View File

@@ -139,6 +139,7 @@
{{ ('[code]%s[/code]' % code) | babycode | safe }} {{ ('[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> <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}} {{ ('[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>Inline code tags look like this: {{ '[code]Inline code[/code]' | babycode | safe }}</p>
<p>Babycodes are not parsed inside code blocks.</p> <p>Babycodes are not parsed inside code blocks.</p>
</section> </section>