This is the line wrap and highlight code from my search engine. see the matching flowcharts at:
1 Submission by Doug Pederson
Beginner Intermediate Advanced Unknown Difficulty