[ZeroBrane Studio] Two plugin API questions...

  • From: "Paul Reilly" <pajthbr@xxxxxxxxx>
  • To: "zerobrane@xxxxxxxxxxxxx" <zerobrane@xxxxxxxxxxxxx>
  • Date: Sun, 08 Oct 2017 15:48:38 +0100

&#x200b;

Hi
I am writing a small plugin for ZBS and I am wondering how to get info from the 
current document. How, for a necessary example, would I get the line number of 
where the caret is in the current document?
local doc = ide:GetDocument(editor)&#x200b;
Thanks in advance for any help.
Paul

Other related posts: