Please allow triple-backtick for code blocks

It would be nice if triple-backticks could be use to enclose code blocks, as an alternative to indenting by four spaces.

Ideally, these triple-backticks could be followed by some language to indicate the desired syntax highlighting.

For example one could input:

```python
def square(x):
    r"""
    Return the square of the input.
    """
    return x*x
```

and see it rendered as

def square(x):
    r"""
    Return the square of the input.
    """
    return x*x
slelievre's avatar
196
slelievre
asked 2023-05-14 14:37:47 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2023-05-16 20:27:19 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments