Hi I am trying to add an inline code block in a Latex document. I know how to add a separate code block using lstlisting but i want to instead add an inline code block. I am attaching the screenshot of output that i am expecting .
As you can see in the same line a code block is added which contains the expression print(g). I want something like that. So that it should be customizable, that is., the background color of the box, width and height of the box, border width etc .Also the text of the code inside that inline code block should be customizable as well .Is there a way to achieve this in Latex?
