XhmikosR / notepad2-mod

LOOKING FOR DEVELOPERS - Notepad2-mod, a Notepad2 fork, a fast and light-weight Notepad-like text editor with syntax highlighting
https://xhmikosr.github.io/notepad2-mod/
Other
1.45k stars 270 forks source link

code that draws the line under a fold header #110

Open kofifus opened 9 years ago

kofifus commented 9 years ago

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 !

XhmikosR commented 9 years ago

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

kofifus commented 9 years ago

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...