static string Snippet( string source, string find, int padding )

Summary

Given a large string, find all occurrences of a substring and return them with padding. This is useful in situations where you're searching for a word in a hug body of text, and want to show how it's used without displaying the whole text.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.