How to paste your code in a community post

When you have to paste a part of your code, the best way to do it is by using three simple quotes —> ` <— at the beginning and three at the end of your code.

For example instead of writing

{% ifi some_var != blank %}
this is shown when in input mode or some_var is filled in
{% endifi %}

you can add the 3 backticks: ` before and after the code, and the code looks like this:

{% ifi some_var != blank %}
   this is shown when in input mode or some_var is filled in
{% endifi %}

This way, it will be easier to identify and read the code in the whole text.

Apple Keyboards

QWERTY


AZERTY

Windows Keyboards

QWERTY

AZERTY


2 Likes