debugtools/formatter.py
def pformat_sql_html(sql):
    """
    Highlight common SQL words in a string.
    """
    sql = escape(sql)
    sql = RE_SQL_NL.sub(u'<br>\n\\1', sql)
    sql = RE_SQL.sub(u'<strong>\\1</strong>', sql)
    return sql
def pformat_sql_html(sql):
    sql = escape(sql)
    sql = RE_SQL_NL.sub(u'<br>\n\\1', sql)
    sql = RE_SQL.sub(u'<strong>\\1</strong>', sql)
    return sql
def pformat_sql_html ( sql ) : sql = escape ( sql ) sql = RE_SQL_NL . sub ( u'<br>\n\\1' , sql ) sql = RE_SQL . sub ( u'<strong>\\1</strong>' , sql ) return sql
Highlight common SQL words in a string.
Highlight common SQL words in a string .