Ah, indeed, Pygments looks to be suitable for static html sites, not for applications such as Discourse.