I am trying to add some inline python code into my report with color in an box like following:
As you can see "matrix text is red coloured embedded in a box" I can add inline colour code using the following method:
CVXOPT extends the built-in Python objects with two matrix objects: a {\color{red}\texttt{matrix}} object for dense
Which produces the following output:
It is almost perfect except a box around the code. How I can have a box around the code?