Just enabled the code highlighting for Nix source
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "foo-${version}";
version = "1.2.3";
src = fetchurl {
url = "https://dl.foo.com/foo-${version}.tar.gz";
sha256 = "...";
};
}
PS: Discourse is using hightlight.js for the code highlighting.
https://meta.discourse.org/t/adding-additional-languages-to-highlight-js-used-by-discourse/22925/5