The code element needs the 'hljs' class.

Otherwise the background colour isn't set.