Trying to Use Sample Library Code

Started by c.k.lester on 15-Sep-2015/16:00:47-7:00
I'm wanting to utilize Gabriele Santilli's 'Simple Rich Text renderer' from this page: http://www.rebol.org/st-topic-details.r?tag=//ui&start-at=31&limit=30 but it doesn't seem to do anything when I double-click. Other Rebol scripts work fine. Can anybody let me know what I might need to do to get this sample up and running? Thank you!
It just needed to have some carriage returns removed, and "do example" added at the end: http://re-bol.com/render-rich-text--working.r You may also want to check out: http://re-bol.com/rich_text_markup.r
Thanks, Nick! That rich_text_markup source is something I've been really wanting to see.
Nick, would it be possible, given this source, to make it possible for the user to edit it and to apply their own formatting? (I just mean as simple as a "bold" button, "italics" button, etc...) Is it possible to use Rebol to build a full-fledged word processor?
Sure, it looks like you could insert the formatting codes in relation to caret positions and highlighted text.
To create a quick ghetto word processor, you could paginate the formatted text output, save those rendered styles to consecutive images, and print the images...
The idea, though, I think was to create an widget which rendered markup code, to be used more akin to HTML in a browser, than a WYSIWYG word processor.

Reply