On Sun, Mar 31, 2013 at 11:30 PM, Haroldo Stenger <[email protected] > wrote:
> I want to decompose [body text] in many @others bodies, based on some marks I put in the text. You can certainly do that with a script. For instance, Leo's parse-body command splits body text that contains Python code into it's component parts, usually a class definition in the original node and the class's methods in sub-nodes. You can find the code for this command in leoPy.leo, the node: Code-->Core classes-->@file leoImport.py-->Commands (leoImport)-->@g.command(parse-body) All the heavy lifting is done by Leo's import command, but the principle remains valid. Edward -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
