This might be use full to add what languages in code blocks are supported for code blocks
``` this is a code block ```
```php this is a code block ```
and which one do you use for terminal?
thanks
For Reference
Discourse uses this
JavaScript syntax highlighter with language auto-detection and zero dependencies.
and this is the setting
Documentation
Site Management
π This guide explains how to configure which programming languages are available for syntax highlighting in Discourse. π Required user level: Administrator Syntax highlighting enhances readability in code blocks by applying formatting based on...
Reading time: 1 mins π
Likes: 18 β€
and
Documentation
Using Discourse
π This guide explains how to select the programming language used in code blocks within Discourse posts, along with how to suppress syntax highlighting. π Required user level: All users When you enclose code using triple backticks in your...
Reading time: 1 mins π
Likes: 11 β€
1 Like
Joe
March 13, 2026, 8:18pm
2
If we can get folks to use code blocks (```) and code sections (`) at all, Iβll be happy. I donβt need the syntax highlighting to be perfect. We mention Markdown in the Guidelines that everyone is recommended to read when signing up (thereβs a big box at the top of the page linking to it until they dismiss it), but it usually takes folks a while to start using it and often only after specifically being asked to do so.
2 Likes
I am just interested which languages are enabled on the forum so I can select the right language when doing my code blocks.
Joe
March 13, 2026, 9:48pm
4
bash, c, cpp, csharp, css, diff, go, graphql, ini, java, javascript, json, kotlin, lua, makefile, markdown, objectivec, perl, php, php-template, plaintext, python, python-repl, r, ruby, rust, scss, shell, sql, swift, typescript, xml, yaml, wasm
Joe
March 13, 2026, 9:49pm
5
In short, every language you are likely to ever use in the context of a Virtualmin system, and a few you probably arenβt.
1 Like
system
Closed
March 21, 2026, 9:49pm
6
This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.