(quoting Seth Molloy firstname.lastname@example.org)
<< The desired functionality is to be able to add lines into the source that are not part of the document.
An example of where this could be useful is for a debugging environment to insert the assembly for C source lines into the C source document. This is a useful feature when attempting to optimize your C source. Another use is to add compiler annotations to the source. If a compiler has the ability to report additional information concerning particular source lines, it is useful to be able to display this information in the body of the source file.
I was able to provide the desired functionality into a 1.75, using the concept of a "false line". A false line is essentially a line that is not included when determining the source line number, but exists in the view. This way when dealing with mouse clicks and displaying the line number in the margin, the lines can be handled appropriately.>>
(Ludovic Aubert email@example.com)
I use this functionality in a diff/merge/clone tool. This feature is a must have for any kind of diff tool because these tools typically need to show views with inserted gaps which must be taken into account by the line numbering.
I'd be very interested to have this feature merged into the next Scintilla release. It is very easy to do it now, Seth has done a vey good job. But if we wait too much, it will become harder to merge as future versions will diverge from 1.75.
Thank you for letting me know what happens: firstname.lastname@example.org
Log in to post a comment.