Hello,

I plan to implement a markdown-like text editor similar to [Apostrophe](
https://gitlab.gnome.org/World/apostrophe). It should convert my syntax to
HTML and display it in a Preview widget based on WebkitGTK. So I have
several newbie questions:

1. The target documents might be very long - books. Does WebkitGTK know how
to deal with this? Can it load/unload dynamically certain portions of the
HTML document in order to hold in memory only what's visible (in order not
to collapse/stay responsive)? Probably a similar mechanism is used when
dealing with webpages with "infinite" scrolling...

2. The source file will be displayed in GtkSourceView. Is there a way to
implement synchronized scrolling, i.e. when the user scrolls the source in
GtkSourceView the rendered document will scroll accordingly inside
WebkitGTK (and vise versa)? It's probably also important to implement
bookmarks, i.e. save the place where the reader left reading and closed the
app, so it can be focused on that same spot on the next app launch.

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

Reply via email to