occ/TraceKit — pull request #19 by mattrobenolt (2012-12-24 03:38:29+00:00)
Title: Configurable number of lines of context, fixes #18

Should be pretty self explanatory. Taking a configurable numer of lines to be grabbed for use in context, and some some calculations to determine how many lines to grab before and how many to grab after.

This will product something like this in different cases. It's preferable to have an odd number of lines so that the offending line can be centered.

##### 11 lines of context (5 before, bad line, 5 after)
```
1.
2.
3.
4.
5.
**BAD LINE**
7.
8.
9.
10.
11.
```

#### 4 lines of context (2 before, bad line, 1 after)
```
1.
2.
**BAD LINE**
4.
```