On Fri, Oct 25, 2013 at 6:01 PM, Brian Theado <[email protected]>wrote:

> I played around
> with creating some html/css which could display example leo tree
> structure just as it would appear in leo itself.
>
> Check out the result here: http://jsfiddle.net/YFsNL/ (the result is
> rendered in the bottom right "pane").
>

very nice Brian! I think you're on to something.  I've not tried it before,
or thought of it for that matter, but css can be applied to xml -
http://edutechwiki.unige.ch/en/CSS_for_XML_tutorial. Did you know that
copying a node [Ctrl-Shift-C] copies it as straight XML? Try that in Leo
and then paste into a text editor, or here in an email:

QQQ
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Leo (http://leoeditor.com/leo_toc.html) -->
<?xml-stylesheet ekr_test?>
<leo_file xmlns:leo="http://www.leo-editor.org/2011/leo"; >
<leo_header file_format="2"/>
<vnodes>
<v t="maphew.20131025224006.6129"><vh>Coffee</vh>
<v t="maphew.20131025224006.6135"><vh>Maxwell House</vh></v>
<v t="maphew.20131025224006.6130"><vh>Folger's</vh></v>
<v t="maphew.20131025224006.6136" a="E"><vh>Store</vh>
<v t="maphew.20131025224006.6131"><vh>Starbuck's</vh></v>
<v t="maphew.20131025224006.6132"><vh>Elsewhere</vh></v>
</v>
</v>
</vnodes>
<tnodes>
<t tx="maphew.20131025224006.6129" str_leo_pos="0"></t>
<t tx="maphew.20131025224006.6130"></t>
<t tx="maphew.20131025224006.6131"></t>
<t tx="maphew.20131025224006.6132"></t>
<t tx="maphew.20131025224006.6135"></t>
<t tx="maphew.20131025224006.6136"></t>
</tnodes>
</leo_file>
QQQ

It goes the other way too. Copying a properly formatted leo-xml fragment
from email into Leo will automatically create the outline structure and
correct body contents. Try copying the text above, between QQQ's, and paste
into Leo with [Ctrl-Shift-V].

-matt

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to