you should add a ``..code-block:: yaml`` directive before the code block:

```rst
.. code-block:: yaml

    profiler:
        enabled: true
        collect: false
```