[code] [textadept] Arbitrary Lua Code on Command Line

From: Mitchell <m.att.foicica.com>
Date: Mon, 11 Feb 2013 16:48:19 -0500 (Eastern Standard Time)

Hi,

The latest change in hg allows for arbitrary Lua code to be run on startup
from the command line. It uses the same abbreviations as the Command
Entry[1].

Some examples:

    ta foo.c -e 'goto_line(9)' # goto 10th line in file (indexed from 0)
    ta -e 'set_lexer("lua")' # change lexer from 'text' to 'lua'

Mitchell

[1]: http://foicica.com/textadept/10_Advanced.html#Command.Entry

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 11 Feb 2013 - 16:48:19 EST

This archive was generated by hypermail 2.2.0 : Tue 12 Feb 2013 - 06:48:41 EST