On Sun, Oct 20, 2013 at 2:51 PM, Steve Litt <sl...@troubleshooters.com>wrote:


> This is almost ready to be a Khan
>  
> Academy lesson (and by the way,
> 
> Khan Academy courses on Leo would be
>  
> another excellent mindshare builder).
>

I've made a note of this.


Does anyone have instructions for building a "Hello World" app in Leo?

It depends on what you mean by an app.  For some purposes, every node in a
Leo outline could be considered an app:

    http://leoeditor.com/tutorial-scripting.html#hello-world

If you want the code in an external file, the programming tutorial should
provide the answer: http://leoeditor.com/tutorial-programming.html
But it doesn't!  How about this?::

Headline: @file hello.py

Body:

    @first #! /usr/bin/env python
    @first # -*- coding: utf-8 -*-
    if __name__ == '__main__':
       print('Hello World')

Depending on your purposes, the body could just be::

    print('Hello World')

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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
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