An NSViewController (and optional document class) that implements syntax coloring and code editing-related features in an NSTextView. Supports plist files for defining a syntax scheme (contains examples).

Official UKSyntaxColoredTextDocument repository

Official UKSyntaxColoredTextDocument site