def build_html_page(classified_text, title='python',
                    css=default_css, html=default_html):
    'Create a complete HTML page with colorized source code'
    css_str = '\n'.join(['%s %s' % item for item in css.items()])
    result = html_highlight(classified_text)
    title = cgi.escape(title)
    return html.format(title=title, css=css_str, body=result)
Create a complete HTML page with colorized source code
recipes/Python/578178_Colorize_Pyth_Sourcecode_Syntax/recipe-578178.py