On Sat, Mar 21, 2015 at 9:24 AM, john lunzer <[email protected]> wrote:

> Thanks again edward. Along with your suggestino it probably wouldn't be
> too hard to implement a keyboard shortcut to comment the body text of a
> node.
>
> What would be the best way to figure out the comment character if a
> @language appears in a node or parent node?
>

​If you just want to comment out text, as opposed to moving the node, just
use Leo's add-comments command.​

For scripts, look at c.add Comments, especially ::

      # The default language in effect at p.
    language = c.frame.body.colorizer.scanColorDirectives(p)
    if c.hasAmbiguousLanguage(p):
        language = c.getLanguageAtCursor(p,language)

HTH.

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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to