def HighlightPython():
    """
    Main function for highlighting python code in a document. Must be called 'in process'.
    """
    ctx = XSCRIPTCONTEXT
    doc = ctx.getDocument()
    HighlightAll(doc)

    Main function for highlighting python code in a document. Must be called 'in process'.
    
recipes/Python/576796_PythSyntax_Highlighting_OpenOffice/recipe-576796.py