Page 1 of 1

Underline is not always work as in configure

Posted: 30.12.2020 06:08
by williamy
Hi
I noticed after configure the StyleFormat with "Underline" checked, sometimes the text in the editor is still not underlined.

Actually, for most of time, it is not underlined (under when the word is in URL format)

I tried to check into the detail, and noticed in below source code, the underline is not handled there,( but if I add "C.Font.Underline := true", it will work.)
that means the underline switch in the config file is not handled here.

https://github.com/Alexey-T/ATSynEdit/b ... c.pas#L726

Posted: 30.12.2020 06:15
by williamy
to be more precise, i noticed the underline is not handled as bold and itallic in all the places,
so, i assume that is it design to work in this way.

Posted: 31.12.2020 08:03
by uvviewsoft
yes seems that attrib is missed to set. but users don't need that attrib. users need bold, italic, bold+italic, crossed, but they dont need underline. its useless for usual syntax files.