BerndGabriel / HtmlViewer

The well-known Delphi/Lazarus HtmlViewer/FrameViewer
Other
398 stars 147 forks source link

Text with multiple underlines #273

Open debritto opened 4 years ago

debritto commented 4 years ago

Hi folks! Happy 2020.

I'm trying to build a software that enables me to highlight texts using layers of underlines.

My aim is to enable people to create qualitative analysis on their texts, discriminating different parts of expressions.

I have found a solution here, using html (see pic #1 coding.png coding

) (from: https://stackoverflow.com/questions/40861062/text-with-multiple-underlines).

So I've tryed to do the same using HTMLViewer component, but it doesn't work. It seems that the component cannot draw underlines below the others (see pic #2 - coding2.png coding2).

I think that there is no way to set "display inline-block" value. Am I right? This is what I'm trying to do:

<span style="border-bottom:3px solid; display:inline-block; padding-bottom:1px;border-bottom-color:blue;"> testando para <span style="border-bottom:3px solid; display:inline-block; padding-bottom:1px;border-bottom-color:red;"> ver se </span> consigo </span>

Please, anyone can offer me an idea? Warm regards

debritto commented 4 years ago

Please, is anybody out there?

BerndGabriel commented 4 years ago

Your right. As HtmlViewer does not support property "display" it can only render 1 underline at a time.