Changed extensions example to use code-block instead of ::

Stumbled across this in the sphinx docs when writing the plugin example. The generated docs look way better with the code formatting.