On Mon, Apr 14, 2014 at 4:50 PM, Terry Brown <[email protected]> wrote:

>   @language r latex
>
> is the same as just
>
>   @language r
...
> I.e. Leo looks at only the first word on a @language line, allowing you
> to list other inactive languages after that word.

Interesting idea.

> Then, put this code on a button or whatever:
[snip]
> searches upwards for a containing node which list multiple
> languages, and cycles the current to the end of the list.
>
> The c.selectVisBack() / c.selectVisNext() is a workaround because
> c.redraw() by itself doesn't refresh syntax highlighting.

c.recolor_now() will probably work.

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