'Given a list of document lines starting with a code block
finds the end of the block, puts it into the ElementTree verbatim
wrapped in ("<pre><code>") and recursively processes the
the remainder of the text file.
Keyword arguments:
* parentElem: ElementTree element to which the content will be added
* lines: a list of lines
* inList: a level
Returns: None'

def __processCodeBlock(self, parentElem, lines, inList):

    (detabbed, theRest) = self.detectTabbed(lines)
    pre = etree.SubElement(parentElem, 'pre')
    code = etree.SubElement(pre, 'code')
    text = ('\n'.join(detabbed).rstrip() + '\n')
    code.text = markdown.AtomicString(text)
    self.parseChunk(parentElem, theRest, inList)
