@julian Believe it or not, but I've never went there before for CSS reference, but I'll read up on it further here since of course they are the "authority" in web standards.
How to change black background on code blocks?
Henry Wright last edited by henrywright
In NodeBB (Persona), code blocks look like this
Does anyone know how I can make them look like GitHub code blocks (grey background for example)?
I've tried styling the
<pre>tags using CSS but this doesn't work.
UPDATE If you refresh this page and look at the code block, you'll see that very briefly it shows with a grey background (this is how I'd like it to be). But then after a second the black background style kicks in.
admin>plugins>markdown has plently of different code formatting styles, you can give those a shot.
Henry Wright last edited by
@baris Cool, didn't know that settings section existed!