Sphinx code directives with more flexible class output support.