html viewer as display text box

Hi everyone
Can i display formated text in a html viewer on the fly
meaning directly by reading a var not a file
I want to use the capacity of html viewer formating text bold / italic / underline etc…
to display a text type in a textarea by user
i can build all html structure around the text
BUT How i tell htmlviewer read it
Do i have absolutly need to save file before display in html viewer?
Thanks

[quote=229945:@Denis Despres]Hi everyone
Can i display formated text in a html viewer on the fly
meaning directly by reading a var not a file
I want to use the capacity of html viewer formating text bold / italic / underline etc…
to display a text type in a textarea by user
i can build all html structure around the text
BUT How i tell htmlviewer read it
Do i have absolutly need to save file before display in html viewer?
Thanks[/quote]

The answer is yes, you can, and you may find Tim Parnel’s HTML Edit valuable to create your text.

To load from a string, see http://documentation.xojo.com/index.php/HTMLViewer.LoadPage

Thank you Michel
Even if i don’t understand your ( Tim Parnel’s ) reference

[quote=230033:@Denis Despres]Thank you Michel
Even if i don’t understand your ( Tim Parnel’s ) reference[/quote]

https://forum.xojo.com/19205-html-edit-control-for-xojo-wysiwyg-rich-text-editor/0

HTML Edit is a rich text editor that accepts and returns HTML instead of StyledText or StyleRuns.
Using a HTMLViewer doesn’t have easy methods of getting results out of it, and doesn’t have events like GotFocus and LostFocus. HTML Edit is designed to offer you the rich text editor without having to worry about these limitations.

Website for details:
http://htmledit.timi.me