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 » Mon Jul 08, 2019 3:05 am

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: 14080
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Parsing and Displaying Markdown File

Post by doublemax » Mon Jul 08, 2019 5:08 am

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 » Mon Jul 08, 2019 8:39 am

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: 14080
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Parsing and Displaying Markdown File

Post by doublemax » Mon Jul 08, 2019 3:48 pm

If you find a good solution, please let us know.
Use the source, Luke!

Post Reply