Adding code block layout. Closes #1273