I have a GtkTextView that contains a Markdown-like document. I also have a
WebKitGTK that contains a JavaScript that can parse and convert Markdown to
HTML. I want to pass the Markdown document to JavaScript to be rendered and
displayed in the WebKitGTK. While parsing, JavaScript produces json that
contains all recognized markup. I want to pass that json as a string back
to GtkTextView somehow so it can highlight the Markdown document with
different colors/styles etc. there. This way one can implement Markdown
Live Preview (in WebKitGTK) while also having its source highlighted (in
GtkTextView) - both by the same code. All this while user types...

Is this possible? If yes - how?

Thank you!
_______________________________________________
webkit-gtk mailing list
webkit-gtk@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-gtk

Reply via email to