What code block languages are available for highlighting?

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

and this is the setting

and

1 Like

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.

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

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

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