If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
There is nothing built in to do that. You'd have to write something yourself. If it's only for one platform, e.g. Windows, it might be possible to find some code "out there".
Or you could switch to wxRichTextCtrl which supports export (but not import!) in HTML.
Would I need convert it from Rich Text to HTML under wxTextCtrl?
I'm note 100% sure i understand the question. But if you use wxTextCtrl, you'd have to implement the conversion to HTML yourself.
If you need a Windows version only, you could (probably, untested) get the control's content as RTF using EM_STREAMOUT / SF_RTF. And hopefully find an RTF to HTML conversion in the open source world. https://docs.microsoft.com/en-us/window ... -streamout
Libraries can have limitations. Is it best if I write the HTML output myself e.g. format the text with HTML because I saved the formatting information about (highlights, colors, etc.) into a data structure?
Is it best if I write the HTML output myself e.g. format the text with HTML because I saved the formatting information about (highlights, colors, etc.) into a data structure?