Table of Contents

Module: PyFontify | Twisted-0.19.0/admin/PyFontify.py
--- | ---
Module to analyze Python source code; for syntax coloring tools. Interface: tags = fontify(pytext, searchfrom, searchto) The `pytext` argument is a string containing Python source code. The (optional) arguments `searchfrom` and `searchto` may contain a slice in pytext. The returned value is a list of tuples, formatted like this: [(`keyword`, 0, 6, None), (`keyword`, 11, 17, None), (`comment`, 23, 53, None), etc. ] The tuple contents are always like this: (tag, startindex, endindex, sublist) tag is one of `keyword`, `string`, `comment` or `identifier` sublist is not used, hence always None.
Imported modules |
--- | ---
import re import string
Functions |
fontify replace test
| fontify
    fontify (
            pytext,
            searchfrom=0,
            searchto=None,
            )
| replace
    replace (
            where,
            what,
            with,
            )
| test
    test ( path )

Table of Contents

This document was automatically generated on Sun Jul 14 19:52:28 2002 by HappyDoc version 2.0