Hacker News new | ask | show | jobs
by thangalin 1106 days ago
RichTeXtFX[1] has these abilities[2] along with demo code[3] that provides an entry point for sleuthing. My text editor, KeenWrite[4], uses RichTeXtFX, but takes a different approach due to its usage of inline variable references. Rather than edit the document in a WYSIWYG-like fashion, users edit the Markdown document as plain text then export as PDF by selecting a theme to apply for typesetting. This cleanly separates content from presentation. The "themes" video tutorial demonstrates how theme selection works.[5]

[1]: https://github.com/FXMisc/RichTextFX/tree/master/richtextfx/...

[2]: https://gluonhq.com/presenting-a-new-richtextarea-control/

[3]: https://github.com/gluonhq/rich-text-area/blob/master/sample...

[4]: https://github.com/DaveJarvis/keenwrite

[5]: https://www.youtube.com/watch?v=3QpX70O5S30&list=PLB-WIt1cZY...