I'm currently playing with geanylua 0.7 and geany 0.14. As you may see, I'm a Lua newbie and this is part of my first script...
I would line to extract the remaining part of a line but without trailing whitespaces and without the \n.
Here a snippet of my code, where _to is the starting point of the needed string and curr_line is the result of geany.lines(..):
if ( #curr_line > (_to+1) ) then _strip_from,_strip_to=string.find(curr_line,"[ \t]*\n",_to+1) if _strip_from then print(string.format("strip from pos %d to %d",_strip_from,_strip_to)) cmd=string.sub(curr_line,_to+1,_strip_from) else cmd=string.sub(curr_line,_to+1) end ...
Thanx
On Tue, 27 May 2008 10:54:20 +0200 Joerg Desch jd.vvd@web.de wrote:
I would line to extract the remaining part of a line but without trailing whitespaces and without the \n.
Sorry. I have forgotten to write, that the snippet works if there whitespaces and a \n. But if doesn't strip of a single \n!
Hi, I have trouble selecting lines by pressing/dragging the cursor done the left side of the lines in a file. There is a feature there that HIDEs the lines I'm trying to select. There is a vertical line with boxes on it containing - or +. What is that called? I can't see any way to move it to the right side of the window or turning it off.
How do I either move it or turn it off?
Thanks, Norm _________________________________________________________________ Change the world with e-mail. Join the i’m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld
On Tue, 27 May 2008 16:28:36 -0500 Norm and Paula radder@hotmail.com wrote:
Hi, I have trouble selecting lines by pressing/dragging the cursor done the left side of the lines in a file. There is a feature there that HIDEs the lines I'm trying to select. There is a vertical line with boxes on it containing - or +. What is that called? I can't see any way to move it to the right side of the window or turning it off.
This is called folding.
How do I either move it or turn it off?
Edit->Preferences, Editor tab, under Features turn off 'Enable folding'.
Regards, Nick