converts code snippets to scrollable boxes