Fix Bug 870494: Add basic snippet functionality.