From 9f23d42912749ef641b017ed032e30c8c9fb4493 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 4 Jan 2013 23:57:55 +1100 Subject: Explaining that annotations affect the relationship between document lines and display lines. --- doc/ScintillaDoc.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 9d688cdfc..c39075c75 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -2938,6 +2938,9 @@ struct Sci_TextToFind { An annotation may consist of multiple lines separated by '\n'. Annotations can be used to display an assembler version of code for debugging or to show diagnostic messages inline or to line up different versions of text in a merge tool.

+

Annotations count as display lines for the methods + SCI_VISIBLEFROMDOCLINE and + SCI_DOCLINEFROMVISIBLE

Annotations used for inline diagnostics:

Annotations used for inline diagnostics

@@ -5080,16 +5083,19 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){

SCI_VISIBLEFROMDOCLINE(int docLine)
- When some lines are folded, then a particular line in the document may be displayed at a - different position to its document position. If no lines are folded, this message returns + When some lines are hidden and/or annotations are displayed, then a particular line in the + document may be displayed at a + different position to its document position. If no lines are hidden and there are no annotations, + this message returns docLine. Otherwise, this returns the display line (counting the very first visible line as 0). The display line of an invisible line is the same as the previous visible line. The - display line number of the first line in the document is 0. If there is folding and + display line number of the first line in the document is 0. If lines are hidden and docLine is outside the range of lines in the document, the return value is -1. Lines can occupy more than one display line if they wrap.

SCI_DOCLINEFROMVISIBLE(int displayLine)
- When some lines are hidden, then a particular line in the document may be displayed at a + When some lines are hidden and/or annotations are displayed, then a particular line in the + document may be displayed at a different position to its document position. This message returns the document line number that corresponds to a display line (counting the display line of the first line in the document as 0). If displayLine is less than or equal to 0, the result is 0. If -- cgit v1.2.3