Re: [code] [textadept] Interactive Lua mode?

From: Mitchell <m.att.foicica.com>
Date: Tue, 22 Oct 2013 15:56:12 -0400 (Eastern Daylight Time)

Hi Dirk,

On Tue, 22 Oct 2013, Dirk GŁnther wrote:

> Hello,
>
> is there something like an interactive Lua mode? That is, I open a new
> window, key in a function such as
>
> function myfunc()
> do_something()
> end
>
> and I'd like to execute it within TA's context. This is to experiment with
> TA's API and such without restarting the editor all the times.
>
> I hope it's clear enough.

You can either use the command entry (Tools -> Command Entry) for one
liners or call

   load(buffer:get_text())()

from the command entry to run arbitrary chunks from the buffer.

Cheers,
Mitchell

-- 
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 Tue 22 Oct 2013 - 15:56:12 EDT

This archive was generated by hypermail 2.2.0 : Wed 23 Oct 2013 - 06:45:21 EDT