I'm happy to say that the new viewrendered3 plugin now has everything working that I wanted for the first phase. An entire tree can be displayed (instead of just a single node). The viewing pane can display only the code blocks if desired. Code in a node or tree can be executed and the output inserted into the viewing pane. These last three only work for RsT, and only Python code can be executed for now (although many languages can be colorized).
MathJax math rendering works for both RsT and MD nodes. Relative URLs work, so that, for example, images can be displayed in the rendering pane using a URL relative to the file you are working on. It should not be hard to get the tree walking, code-only viewing, and code execution working for Markdown, but I plan to leave them until after the current version gets some more testing. I changed the user interface a bit from viewrendered2: 1. The default rendering type (RsT, MD, Text) can be changed at any time by a menu item. No more need to edit an @setting and reload. 2. Code execution is done using a pushbutton instead of a menu item. Execution is a one-time event, so that the plugin does not try to execute code every time you type a few characters. You have to press the button each time you want an execution. Before I make the plugin available for testing, I need to do a few things: - Make sure everything works right on linux. - Update the docstring. - Write up some configuration information, like how to get MathJax working (you can download the MathJax package to your own computer, and point to it using a file:/// URL). So a few more days, I hope. -- 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/77e054df-d33c-4d22-8632-0a998c0729c0%40googlegroups.com.
