How to insert a command from a terminal on the forum?

I have a question, how to insert a terminal command in a post on frum so that it is visible and possible to copy?

Type three backticks — i.e. `, not ’ – followed by a newline, then paste the output on the next line, then insert another newline and type three backticks again.

Alternatively, you can click the </> button in the toolbar of the post editor. :wink:

1 Like

The Manjaro Discourse forum uses Commonmark. Here’s a cheatsheet.

To answer your specific question, I either use code blocks or quote blocks.

```
code block
```

or

[code]
code block
[/code]

and

> quote block
>

or

[quote]
quote block
[/quote]

NOTE: The bracket syntax is actually bbcode. I think this might be a Discourse addon, but not sure.

1 Like

Overall repeating what has been said above.

4 Likes

Thank you very much for help :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.