Currently we have a couple of cases where we highlight changed lines by adding a text-marker in the margin associated with the line, and applying a style to the marker's text so it shows up either green or red.
However, if you have word-wrap on, the markers appear only for the part of the margin at the start of each line. Let's say lines 5 and 6 (1-based coords) changed, and line 5 wraps over the next 3 lines. Then I only get markers at the start of line 5, and then another marker 4 lines down for line 6. I'd like to see a band of 4 markers for line 5.
I realize that I don't want this for any of the other kinds of markers, like breakpoints, fold markers, and bookmarks. Those are fine not repeating.
Is there any way to do this with Scintilla (v. 334)? Does this feature make sense.
You can see this in Komodo IDE (not Edit) with collaboration. Share a file between two nodes (machines, usually), could be two VMs. In the one that's being changed create a long line and start modifying that line. Doesn't have to be a real long line -- 3 screen-widths is ample. In the other system just view the changes, but turn word-wrap on. The colored change markers should appear only with the first line.
This is not supported with Scintilla 3.3.4 but appears to be a reasonable addition. Making this an independent attribute of each markerNumber would allow applications to choose particular effects without affecting existing users. Perhaps an enumeration { appearsFirstLine, appearsAllLines }.
This could be extended later with, for example, appearsAfterFirst if applications wanted to use different visuals for the first and subsequent lines, such as using a less intense or dotted appearance for subsequent lines.
5.3.0 added
SC_MARK_BARthat continues onto additional sublines. It is a framed and filled rectangle that has end caps on the first and last (or only) line and full height connectors on internal lines. It was developed specifically for change history although it can be used for other purposes. A 'rounded cap' version may also be interesting.