notepad2-mod icon indicating copy to clipboard operation
notepad2-mod copied to clipboard

code that draws the line under a fold header

Open kofifus opened this issue 10 years ago • 2 comments

I am looking for help modifying the code, if this is not the right place to post please point me in the right direction.

I am trying to implement a new word wrap mode which will affect folding based on indent, in the same way as the python lex, but handle wrapped header lines differently.

Basically when a long wrapped line is the header of a fold, ATM the whole wrapped line - visually a few lines - are displayed and marked with an underline.

I want to change this behavior so that in this case only the part of the header line that fits in a one screen line will be visible and underlined. The rest of the header line (the wrapped part) will fold together with the rest of the text in the fold.

I am quite lost in the folding code ATM, I am especially looking for pointer to the place where the fold header line is being underlined. Any other pointers/comments are greatly appreciated.

Thanks !

kofifus avatar Feb 19 '15 10:02 kofifus

For which lexer do you want to implement this? Generally, this should be handled in Scintilla and any patches should be submitted there.

XhmikosR avatar Feb 19 '15 22:02 XhmikosR

Thanks ! ok, but can you point me to the code that draws the line please ? As far as I can see the lexers (I'm looking at pyhon) just flags the top line of the fold but I'm looking for the actual drawing of the line...

kofifus avatar Feb 20 '15 13:02 kofifus