On Fri, Aug 8, 2025 at 1:49 PM Len Philpot via Users <[email protected]> wrote: > > The ability to prepend and / or append a user-defined string to each line in > a selection is very useful. Is there a way to do this natively in Geany, or > is there a plugin that can do it? I realize a macro could be recorded, but > something simpler and ad-hoc is preferred. > > I'm on Windows if it matters. > > Thanks. > > Len
I often do this in the find & replace dialog with a regular expression. E.G. Search for: ^(.) Replace with: prefix\1 checked: Use regular expression click: In Selection or Search for; (.}$ Replace with: \1suffix checked: Use regular expression click: In Selection You can change the capture string to a target string to change a more complex set of lines. HTH Doug -- Doug Henderson, Calgary, Alberta, Canada - from gmail.com _______________________________________________ Users mailing list -- [email protected] To unsubscribe send an email to [email protected]
