On Friday, December 27, 2019 at 6:35:04 PM UTC-5, Thomas Passin wrote:
>
> I have made a lot of progress on re-implementing *Viewrendered2 *in the 
> QT5 era, and I wanted to share where I am with it.
>

Here's the new work as of today:

- I completely re-implemented the code that reads a node's rst and converts 
it  to HTML.  Now each section that's delineated by an *@language* 
directive is collected in its own chunk, so a Python code chunk can be 
displayed (or executed, when I get that going) with proper syntax 
colorizing.  A node can contain any number of *@language* changes, not just 
a single change to Python like the old VR2.  In principle, one could have 
different languages appropriately colorized in different code blocks, but 
for now I'm only doing it for Python.

   Using chunks seems to be a fairly standard approach in literate 
programing, and I have a *Chunks* class for accumulating text chunks that 
knows how to turn its text into the right rst form for the code language 
(only Python so far).

- for @md nodes, I have math rendering by MathJax, and code block 
colorizing, working. Code fencing is working.  To make this work, you need 
a css style sheet, and the plan here is for the plugin to check for its 
existence and to create a default stylesheet if needed.  Or you will be 
able to designate a custom stylesheet instead.

- The *Reload *toolbar button is now hooked up and working.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/8ddf315d-1413-44ca-8786-6cb6764c3f32%40googlegroups.com.

Reply via email to