code_chunk function

Generate a code chunk