diff --git a/documentation/dev-manual/python-development-shell.rst b/documentation/dev-manual/python-development-shell.rst
index 034100ae8799..76167f5bacf4 100644
--- a/documentation/dev-manual/python-development-shell.rst
+++ b/documentation/dev-manual/python-development-shell.rst
@@ -13,7 +13,9 @@ specified target. Then a new terminal is opened. Additionally, key
 Python objects and code are available in the same way they are to
 BitBake tasks, in particular, the data store 'd'. So, commands such as
 the following are useful when exploring the data store and running
-functions::
+functions:
+
+.. code-block:: pydevshell
 
    pydevshell> d.getVar("STAGING_DIR")
    '/media/build1/bitbake-builds/build/tmp/sysroots'
