I am currently displaying some text in a TLabel. I would now like to emphasise certain words within the text by displaying them in bold or perhaps italic
Some ideas:
Have a look at TLinkLabel
in ExtCtrls
.
It lets you add links.. it paints the linked part underlined. Maybe you can steal the code and add support for other tags like
?
You can use a TRichEdit component.. It's not HTML as you describe, but it should do the trick of formatting your text.
Use TjanMarkupLabel from this page. "TjanMarkupLabel is a TGraphicControl descendant that renders its Text property in HTML style. Supported tags: Bold, Italic, Underline, Font (face, size and color) and Break."