mention languages for code blocks in babycode help
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user