[script] Copy brackets or quotes content

Ask questions about how to create a script or swap scripts with other users.
Post Reply
User avatar
fred_gaou
Posts: 25
Joined: 07 Mar 2012 09:45
Location: France

[script] Copy brackets or quotes content

Post by fred_gaou »

Note: thanks pjj

Hi,

There are 2 scripts that come with 2 icons to use with button.
Image

Image


Features example for brackets and embraces processing:


if a line content is

Code: Select all

 {bli bli bli (na na na) bli [he he he] bli bli} bla bla bla
and if caret | is at the following example position
{|bli bli| bli (|na n|a na|) bli [|he h|e he|] bli bli} bla bla bla
the script will select and copy text between () or [] or {} according to the caret position.

Known limitations:

1/ Some caret | positions are invalid and won't return anything
{bli bli bli (na na na) b|li [he he he] bli| bli} bla bla bla
2/ It works only on one line and if word wrap is disabled.


Features for quotes processing:


Limitations and features are the same as for brackets and embraces processing. It will select and copy text between ' ' or " "

If someone want to help to improve those scripts to remove limitations, one's welcome. I'd like they work on multilines: the lines displayed in current editor view should be enough



Installation:


1/ Donwload attachment
2/ Extract archive and copy Data & Scripts folders into TextEd program directory that is said "...your installaion path\RJ TextEd\" or else
3/ In Texted, open Options window and go to "Customize/Tool Menu" (it's the last section) and add scripts
4/ Play with settings, choose icon, etc.
Attachments
Copy content.zip
(3.1 KiB) Downloaded 602 times
- RJ TextEd 8.11 Portable
- Win XP SP3 (french)
Post Reply