def METHOD_NAME(self, txt):
    """ Use <ol> for line numbering """
    # Fix Whitespace
    txt = txt.replace('\t', ' '*TAB_LENGTH)
    txt = txt.replace(" "*4, "&nbsp; &nbsp; ")
    txt = txt.replace(" "*3, "&nbsp; &nbsp;")
    txt = txt.replace(" "*2, "&nbsp; ")        
    # Add line numbers
    lines = txt.splitlines()
    txt = '<div class="codehilite"><pre><ol>\n'
    for line in lines:
        txt += '\t<li>%s</li>\n'% line
    txt += '</ol></pre></div>\n'
    return txt