diff --git a/books/beaglebone-cookbook/07kernel/kernel.rst b/books/beaglebone-cookbook/07kernel/kernel.rst
index 4c2e3618b112978abaca3f06e9cb40dc56355f0d..3267873b129367d6e1fa30801e5ad788283f9589 100644
--- a/books/beaglebone-cookbook/07kernel/kernel.rst
+++ b/books/beaglebone-cookbook/07kernel/kernel.rst
@@ -523,7 +523,7 @@ Solution
 .. _kernel_hello_patch:
 
 .. literalinclude:: ../code/07kernel/hello.patch
-   :language: patch
+   :language: text
    :caption: Simple kernel patch file (hello.patch)
    :linenos:
 
diff --git a/books/beaglebone-cookbook/11misc/misc.rst b/books/beaglebone-cookbook/11misc/misc.rst
index 67a6b1f0c7c626abd4f6b6ca4b44be07cec9a48d..2fdb0b5b758ff8c5131cdb1883e6c29486894ace 100644
--- a/books/beaglebone-cookbook/11misc/misc.rst
+++ b/books/beaglebone-cookbook/11misc/misc.rst
@@ -775,10 +775,16 @@ Run the following to download and setup Sphinx locally.
         imagemagick-6.q16 librsvg2-bin webp \
         texlive-full texlive-latex-extra texlive-fonts-extra \
         fonts-freefont-otf fonts-dejavu fonts-dejavu-extra fonts-freefont-ttf
-    bone$ ./venv-build-env.sh
 
 In case of any problems, checkout `Beagleboard Forum <https://forum.beagleboard.org/>`_.
 
+Setup virtual environment for python using the `venv-build-env.sh` script at the project root.
+
+.. literalinclude:: ../../../venv-build-env.sh
+   :language: bash
+   :caption: Bash script for setting up virtual environment
+   :linenos:
+
 Now go to the cloned *docs.beagleboard.io* repository folder and do the following.
 To clean build directory:
 
diff --git a/books/pru-cookbook/05blocks/blocks.rst b/books/pru-cookbook/05blocks/blocks.rst
index dcddf03b9444348eb2d3a5399f892f58044a65e5..a0ca13d83c20f4c05e7ff93f57a72d1bbd993c9f 100644
--- a/books/pru-cookbook/05blocks/blocks.rst
+++ b/books/pru-cookbook/05blocks/blocks.rst
@@ -1725,7 +1725,7 @@ high-level view of how to drive the display.
 .. _blocks_rgb_python:
 
 .. literalinclude:: ../code/05blocks/rgb_python.py
-   :language bash
+   :language: bash
    :caption: rgb_python.py - Python code for driving RGB LED matrix
    :linenos:
 
@@ -1736,7 +1736,7 @@ Be sure to run the :ref:`blocks_rgb_setup` script before running the python code
 .. _blocks_rgb_setup:
 
 .. literalinclude:: ../code/05blocks/rgb_python_setup.sh
-   :language bash
+   :language: bash
    :caption: rgb_python_setup.sh
    :linenos:
 
diff --git a/books/pru-cookbook/06io/io.rst b/books/pru-cookbook/06io/io.rst
index 95a69ed4eb06e615478f5df5f706134fed1a8e73..62bbfbac06b5c5971e370e61b9e0817bfdd87eaf 100644
--- a/books/pru-cookbook/06io/io.rst
+++ b/books/pru-cookbook/06io/io.rst
@@ -98,7 +98,7 @@ GPIO pins, but it's a slower access.
 This code will toggle ``P9_11`` on and off. Here's the setup file.
 
 .. literalinclude:: ../code/06io/setup.sh
-   :language bash
+   :language: bash
    :caption: setup.sh
    :linenos: