How to disable syntax highlighting on Discourse?

(Incidentally, how do I get Discourse to format backticked code blocks without attempts at Haskell syntax highlighting?)

I think that is currently impossible. You can use four space indentation which doesn’t have any highlighting.

Edit: I just found this: Select the programming language used in code blocks - users - Discourse Meta. It seems you can use:

```text
my plain text
```
2 Likes

So I guess this Discourse instance is “helpfully” set to Haskell highlighting by default?

<pre>-formatting works here:


~~~haskell
main = putStrLn "No highlighting, please."
~~~

3 Likes

Yes, that and as Jaro said, four-space indentation:

import Acme

main :: IO ()
main = launchRocket
1 Like