What is the best way to display styled text in a Racket GUI app?

45 views
Skip to first unread message

Andre Garzia

unread,
Nov 12, 2019, 7:00:06 PM11/12/19
to Racket Users
Hi Friends,

Does anyone here know what is the best way to show styled text in a
Racket GUI application?

I've got some markdown that I wish to display but I can't find how to
display any form of styled text, let alone markdown.

I've started a little project to implement webviews but I think they are
overkill for this project and to be honest, I couldn't figure out how to
display a webview on windows.

If anyone could point me into some module or direction, I'd really
appreciate it.

Best

Andre

Martin DeMello

unread,
Nov 12, 2019, 7:06:19 PM11/12/19
to Andre Garzia, Racket Users
I just figured this out for my current project; I'm not sure it's the best way but it's a working way :) I have a subclass of text% that mixes in html-text-mixin, and then I populate it via render-html-to-text. You can see the code here:


martin

--
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/a2d7247d-0ca7-faba-c346-3ce0cdd9f130%40andregarzia.com.
Reply all
Reply to author
Forward
0 new messages