Re: Re: Parameterized abbreviation support
John L <[email protected]> Fri, 26 Jan 2024 10:35:53 -0800 (PST)
| Newsgroups | gmane.editors.scite.general |
|---|---|
| Message-ID | <[email protected]> |
Greetings, This is something useful that Remi, Gillig offered some time ago. Has there been further development ... by anyone? Reason? ... I've lost track and lost code modifications involving it, some years ago. Thank you. On Wednesday, June 1, 2011 at 1:11:25 PM UTC-4 Remi Gillig wrote: > Here my implementation of a similar behavior in Lua. I'm sure it could > optimized in a lot of ways but it worked quite well. Maybe some things > don't work anymore because I don't use SciTE and this was made back in 2006. > > The parameters are \1 \2 etc. in the abbreviations file and you use it > with parenthesis. I remember pesting at Lua's regex implementation because > it didn't allow some common regex constructors. > > The zip contains the Lua script (to launch at startup), the abbreviations > file, a readme, a C file to make animations with the abbreviations. > > Anyway, I hope you will find this useful. > > Remi Gillig. > > On 1 June 2011 18:57, Leledumbo <[email protected]> wrote: > >> > Here's another way to skin this particular cat. What if abbreviations >> > were able to contain 'active' property expansions, like $(fun prop). >> > Here 'fun' would be a global Lua function which takes the argument and >> > generates some text. You could use this then to generate _SOME_H from >> > the $(FileName) property. >> >> That's another thing that comes across my mind too >> > -- >> You received this message because you are subscribed to the Google Groups >> "scite-interest" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/scite-interest?hl=en. >> >> -- You received this message because you are subscribed to the Google Groups "scite-interest" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/8b3d025c-8216-40b9-8907-17ebd5088e60n%40googlegroups.com.