diff highlighting patterns

TK Soh teekaysoh at gmail.com
Mon Jul 3 15:49:48 CEST 2006


On 7/3/06, Volker Kuhlmann <list0570 at paradise.net.nz> wrote:
> > It might work OK, but it would probably be both more efficient, simpler, and
> > more maintanable to have separate patterns and use the opening lines to
> > seect which one to activate.
>
> You mean basically making a different "language"?

I don't feel that's really necessary. First, diff files seldom get to
big. The various diff formats aren't really that complicated, so they
should be able to fit into one SH patterns.

> I'd like added lines in blue and deleted lines in red. Unified and
> normal diffs are conflicting because one uses '^---' for added lines,
> the other for removed lines.

Not sure I follow you correctly here. The "^---" marker in the normal
diff looks just like a divider to me.


More information about the Discuss mailing list