How to create the content of a TWebRichEdit at runtime?

How I assign preformatted text as RTF or HTML to the TWebRichEdit?

You can use something like:

begin
  webrichedit1.Lines.Text := '<b>hello</b> <i>world</i>';
end;