'create external and internal style sheets'

def _sendCSSStyle(self, external=0):

    styles = []
    external += self.external
    if (not external):
        styles.append('<style    type="text/css">\n<!--\n')
    styles.append(('body    {    background:%s;    }\n' % self._getPageColor()))
    for key in MARKUPDICT:
        styles.append(('.%s    {    %s    }\n' % self._getCSSStyle(key)))
    styles.append(self.colors.get(PY, '.py    {    }\n'))
    styles.append(self.colors.get(CSSHOOK, ''))
    if (not self.external):
        styles.append('--></style>\n')
    return ''.join(styles)
