Parsing and Displaying Markdown File

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.
Post Reply
User avatar
Deluge
Earned some good credits
Earned some good credits
Posts: 122
Joined: Fri Apr 30, 2010 4:52 am
Location: USA
Contact:

Parsing and Displaying Markdown File

Post by Deluge »

Does wxWidgets have an implementation or method for displaying Markdown text? I see in STC library there are some defines that mention Markdown. Is there a flag that can be set for wxStyledTextCtrl that makes it parse Markdown? I haven't found anything yet in the documentation for that.

Edit: Oh, I misunderstood what wxStyledTextCtrl was. It's only a wrapper around Scintilla for creating text controls with syntax highlighting. So that's definitely not what I want to use.
Projects:
Debreate
MyABCs
Stendhal

OSes:
Windows 10 Home (missing my Linux & Freebsd :()
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Parsing and Displaying Markdown File

Post by doublemax »

There is nothing for this in wxWidgets. Try searching for open source markdown to html conversion code and then use wxWebView to display it.
Use the source, Luke!
User avatar
Deluge
Earned some good credits
Earned some good credits
Posts: 122
Joined: Fri Apr 30, 2010 4:52 am
Location: USA
Contact:

Re: Parsing and Displaying Markdown File

Post by Deluge »

Thank you doublemax, that is what I will do.
Projects:
Debreate
MyABCs
Stendhal

OSes:
Windows 10 Home (missing my Linux & Freebsd :()
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Parsing and Displaying Markdown File

Post by doublemax »

If you find a good solution, please let us know.
Use the source, Luke!
csniper
Experienced Solver
Experienced Solver
Posts: 53
Joined: Mon Mar 13, 2017 8:27 am

Re: Parsing and Displaying Markdown File

Post by csniper »

doublemax wrote: Mon Jul 08, 2019 3:48 pm If you find a good solution, please let us know.
I did this in my app by converting markdown by Cpp-Markdown(changed to support Unicode and use xpressive) and display it with wxHtmlWindow. Not sure if anyone had a better solution.
Post Reply