Surround code in document with code/endcode tags.