Problems with New Language Mode

Aaron Hsu arcfide at sacrificumdeo.net
Tue Apr 24 23:15:09 CEST 2007


On Tue, 24 Apr 2007 13:52:46 -0500, Aaron Hsu <arcfide at sacrificumdeo.net>  
wrote:

> Well, as for more sophisticated, I hopefully will be able to make this  
> one myself, but when someone types a ')' then I want NEdit to scan  
> forward to the nearest ')' and put the cursor right after that. This  
> should be an easy one that I can do myself, but if anyone feels like  
> helping….

Looks like I have succeeded! :-) It's working well so far:

new_pos = search(")", $cursor)
if (new_pos != -1)
   set_cursor_pos(new_pos + 1)

Voila!

-- 
Aaron Hsu <arcfide at sacrificumdeo.net>
http://www.aaronhsu.com | XMPP/Gtalk: arcfide at xmpp.us
(703) 597-7656 | "No one could make a greater mistake than he who did  
nothing because he could do only a little." - Edmund Burke


More information about the Discuss mailing list