add code directive to code block