John Vella:
> I'm trying to determine if I can use a style for a text margin that has the underline option enabled (via SCI_STYLESETUNDERLINE). It seems that the PaintSelMargin function doesn't make a check if the style wants an underline, so I'm guessing this is either an oversight or intentional exclusion.
The main Scintilla text drawing code is quite complex and only a simple subset was copied for the DrawStyledText method used by margin text and annotations.
Due to platform differences in handling underlines, Scintilla does't try to use underline attributes on fonts and instead draws underlines separately after drawing the text. It would be fairly easy to copy that code into DrawStyledText if anyone wants to implement that.
Neil