Hi, I'm in the process of writing a programming book.
The literate programming concept is attractive because it uses the code in two distinct ways: a) as program source b) as part of the book contents Important here is that they are exactly the same lines being used in two different contexts. The usual literate programming tools however leave room for improvement, and so I found Leo. So I have a section of code annotated with @language assembly_x86 which displays well in the code branch. When I clone this section into the book branch it needs the sphinx annotation .. code:: nasm or else it isnt recognized for block layout (all lines of assembly are displayed on a single line in the browser) and syntax highlighting. So far I have failed to get Leo to use the cloned section to display properly in both contexts. I've tried anonymous sections with @others, named sections <<section>> with and without preceding the named sections with rst annotation but it just doesnt come out well. I am really not very familiar with Leo yet, but I do understand the importance of cloning sections and would love to use Leo for my project. So is there some way that I can properly display a section with assembly code in both contexts? Or am I using Leo improperly and how should I organize my work to 'Leonize it'. thanks in advance, Leo -- 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 https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
