<div dir="ltr">Hi,<div>thanks for the response.<br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Yes, since each editor have a separate marker handling (since it's a<br>
separate ScintillaObject), you have to re-define the markers for each<br>
document.<br></blockquote><div><br></div><div>Ok, great. Then I programmed it correctly =)</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

I'm not quite sure right now without any testing, but couldn't you end<br>
up with a fractional value that gets wrongly rounded or something?<br>
Sorry, I'm not so familiar with markers.<br></blockquote><div> </div><div>It is possible, I will look into cropping the image on run-time somehow. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


BTW, couldn't you use one of the builtin markers instead of an image?<br>
Like a green SC_MARK_PLUS and a yellow SC_MARK_FULLRECT or something?<br>
If this is ok for you it would save you from having to bother image<br>
definition, loading, scaling, whatever.<br></blockquote><div> </div><div>I would be glad to use Scintilla's symbols but I have two problems:</div><div>a) I have only plus or minus (which makes sense) but couldn't decide which was a good symbol for modified lines. This is a matter of aesthetics anyway. Currently I'm using simply a block of solid color using for each (red, yellow and green). However...</div>

<div>b) The tricky part is that there are no lines which are marked as deleted because, well, there are gone. So the "deleted" marker should actually go between lines. Netbeans puts an arrow-shaped marker pointing in between lines. So I emulated this as you can see in the attachment, but it doesn't look really pretty and has these issues. Since Scintilla only lets me add markers to lines (and not in between) I resorted into creating a fourth type of marker named "deleted-modified", which is used whenever the current line is modified and previous lines were deleted (see picture).</div>

<div><br></div><div>I will use these for now (unless someone suggests a simpler/better solution) and continue into git integration.</div><div><br></div><div>Best,</div><div>Matías</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<br>
Regards,<br>
Colomban<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a><br>
</blockquote></div><br></div></div></div>