<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Not sure if this will help you, but I wrote a plugin to highlight
    anything selected and a search string using separate highlighting
    from the other searches and AddOn plugin.  It sounds like you are
    putting markers in the margin, but this code may be useful to look
    at if you wanted to mark the changes inline (such as using green to
    indicate added code).  You'll notice the gints I use for the
    indicators must be unused by geany for other highlighting.<br>
    <br>
    <a
href="https://github.com/sblatnick/geany-plugins/blob/quick-search/quick-search/src/quick-search.c">Github
      - Quicksearch</a><br>
    <br>
    Thanks,<br>
    <br>
    Steve<br>
    <br>
    <div class="moz-cite-prefix">On 10/07/2013 06:54 AM, v01d wrote:<br>
    </div>
    <blockquote
cite="mid:CAJw=TtrchrHYUQ1MC9emfY0AgPryS3AcqMjNWP4FtyL+WS8zMw@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
                  href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a><br>
                <a moz-do-not-send="true"
                  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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a>
<a class="moz-txt-link-freetext" href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>