This should get me started. Thanks. On Saturday, March 21, 2015 at 1:36:49 PM UTC-4, Edward K. Ream wrote: > > > > On Sat, Mar 21, 2015 at 9:24 AM, john lunzer <[email protected] > <javascript:>> 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.
