Some documentation, like Python's Logging Cookbook use Sphinx's Literal Blocks (i.e. just ::) instead of the .. code-block:: directive.
It would be nice to support these docs too. The extension would need to support the highlight directive and the highlight_language configuration option (the latter being used in the Python docs).