\fbox on its own, it creates a border around the text. However, I want to create a new command so I can create a boxed code example. Written 'inline', it works as expected:
However, when I put it into a new command:
It doesn't apply the border, nor does it apply the font and sizing.
I am completely new to LaTeX, so any help will be much appreciated in identifying what the problem is.