Subject: TextWarangler macros?
What would be the best way to do this? Does the purchased copy of bbedit
have such function?
and then assign this to a key and just press key repeatedly. ( there is
also a repeat command).
Just wondering if such functionality exists in TextWrangler of if I
upgrade to BBedit.
In message <KyKOI.688$qf5.360@fx07.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
Subject: TextWarangler macros?
TextWrangler was EOLed five years ago. You should use the free
version of BBEdit.
What would be the best way to do this? Does the purchased copy of bbedit
have such function?
You do not need to pay for BBEdit to use its regex function.
and then assign this to a key and just press key repeatedly. ( there is
also a repeat command).
Once you write the rege you can simply say "replace all" and that will replace all instances in the file. Or in multiple files.
Just wondering if such functionality exists in TextWrangler of if I
upgrade to BBedit.
I do not remember what TextWrangler supported, but I suspect it did
support regex. BBEdit is better, however, and has a fully supported free version.
--
"Are you pondering what I'm pondering?"
"Well, I think so, Brain, but snort no, no, it's too stupid!"
On 04-Aug-2021 at 11:35:21PM PDT, "Lewis" <g.kreme@kreme.dont-email.me> wrote:
In message <KyKOI.688$qf5.360@fx07.iad> JF Mezei
<jfmezei.spamnot@vaxination.ca> wrote:
Subject: TextWarangler macros?
TextWrangler was EOLed five years ago. You should use the free
version of BBEdit.
What would be the best way to do this? Does the purchased copy of bbedit >>> have such function?
You do not need to pay for BBEdit to use its regex function.
and then assign this to a key and just press key repeatedly. ( there is >>> also a repeat command).
Once you write the rege you can simply say "replace all" and that will
replace all instances in the file. Or in multiple files.
Just wondering if such functionality exists in TextWrangler of if I
upgrade to BBedit.
I do not remember what TextWrangler supported, but I suspect it did
support regex. BBEdit is better, however, and has a fully supported free
version.
When I wanted to write some automation for BBEdit, I used the Applescript extensions. That worked great for automating editing a file.
You do not need an AppleScript for the task described though, you just
need a regex.
On 2021-08-07 02:53, Lewis wrote:
You do not need an AppleScript for the task described though, you just
need a regex.
Can you provide an example of regex copying text from one area of text
and then adding text elsewhere (including the copied text).
I have only used regex to locate text and replace it.
search for "^([^ ]+) (.*)"
replace with \2, \1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 482 |
Nodes: | 16 (2 / 14) |
Uptime: | 45:49:57 |
Calls: | 9,566 |
Files: | 13,656 |
Messages: | 6,142,099 |