How to change black background on code blocks?



  • In NodeBB (Persona), code blocks look like this

    Code here
    

    Does anyone know how I can make them look like GitHub code blocks (grey background for example)?

    I've tried styling the <code> and <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

    admin>plugins>markdown has plently of different code formatting styles, you can give those a shot.

    upload-2c33f928-5c43-4022-a98d-ea0590479181



  • @baris Cool, didn't know that settings section existed! 🙂


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.