Search code examples
htmldelphirtfpage-layout

HTML or RTF to display columns of text with color-coded words


In my Delphi program I want to display some information generated by the application. Nothing fancy, just 2 columns of text with parts of words color-coded.
I think I basically have two options:

  1. HTML in a TWebbrowser
  2. RTF in a TRichEdit.

HTML is more standard, but seems to load slower, and I had to deal with The Annoying Click Sound. Is RTF still a good alternative these days?

Note: The documents will be discarded after viewing.


Solution

  • I'd also use HTML. Besides, you just got an answer for the clicking sound in TWebBrowser.

    If you'd rather not use TWebBrowser, take a look at Dave Baldwin's free HTML Display Components.