When you use the php markup the code box waste space on top and bottom. there is a blank line even you put your text right behind the markup and not in a new line.
box with php markup all oi one line:
box with php markup with cr/lf after markup and text