On Tue, Dec 14, 2010 at 6:21 AM, Satheesh Babu Vattekkat
<[email protected]> wrote:

> ie., take a minimal file, load it into Leo, then run through my
> exported data and attach instances of leoNodes to the file and then
> save it. I will also need to attach cloned nodes at various points in
> the outline.
>
> Has anyone done this or any pointers on how to go about this?

1. In a sense, all of Leo's importers do this. Creating an importer
can sometimes be easy.  For example, the C, and C# scanners simply
override the ctor of the base class.  The scanners for other languages
are more complicated, but not impossible to write.  See the node:

Code-->Core classes-->@file leoImport.py--><< how to write a new importer >>

2. There are several plugins that also "slurp" code into Leo.
See http://webpages.charter.net/edreamleo/plugins.html#files-and-nodes

In particular, active_path.py, at_folder.py, expfolder.py and
read_only_nodes.py may provide you with ideas and code.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to