Statisch bestand genereren in Discourse

I might be misunderstanding, but do you want it formatted as code and not standard text?

html {
  background: red;
}

You can do that by surrounding your CSS with backticks like this:

```css
html {
background: red;
}
```