Code boxes on this site are made with the Crayon Syntax Highlighter plugin. Overall it works well just with a few gripes that can be changed in the default settings.
Defaults I changed:
- Always display the toolbar (I found it rather annoying that the toolbar would cover the first line of code instead of expand the whole box downward)
- Wrap lines by default
About 50% of the time I turn of highlighting on individual code snippets.
I typically use inline for terminal commands.