资 源 简 介
About
PyGTKCodeBuffer is a syntax-highlighting engine written in pure Python to provide maximum portability. It depends only on PyGTK and the Python standard library. No Gnome nor Scintilla libraries are needed so it should run perfectly under all platforms supported by PyGTK!
Features
To keep this project lightweight the PyGTKCodeBuffer only provides you a model/buffer for code-viewing/editing. To view a code-buffer simply use the default gtk.TextView widget. This buffer provides you a simple way to build a editor with syntax-highlight support.
All code for PyGTKCodeBuffer is located in one source-file to allow you to ship PyGTKCodeBuffer along with your application so your costumers do not have to care about having PyGTKCodeBuffer installed.
Very portable: written in pure Python
No additionally dependencies: except PyGTK
Easy to integrate: Supports the gtk.TextBuffer-interface
Easy to distribute along