At 21:25 -0700 on 08/06/2011, verdonv wrote about Re: Clipping and indent:

Which results in this,

{c:Chorus}
<tab>{soc}
<tab>The rain in Spain
falls mainly in the plain
The fog in the bog
makes a slippery log
<tab>{eoc}

I've tried fiddling with #indent# but I realize now, that's not it's
purpose.

Any thoughts how to get the subsequent lines to indent to the position
of the first in the selection?

If I were doing this, I would let the clipping do its thing first. Then I would do a find and look for "\t{soc}\t" which would find the first line (\t is the special symbol for tab). Now enter a find for \r with a replace of \r\t into the find replace menu. This says to add a tab to the start of the next line (\r is end of line). Now go Find to get the the end of the line. Doing a Replace&Find at this point will add the tab to the next line and go to the end of that line. Repeat the R&F until you are at the line above the <tab>{eoc} and you are done with THIS block. If you have more blocks in the file, repeat from the beginning with the find for the {soc}. This might be able to be automated but doing this manually could meet your needs.

I apologize for not giving you an automated/automatic method but depending on how many times you need to do it, this may be enough. I leave it for others here who are more tuned into how to automate to provide an alternate method or to turn these steps into an automation script (or text factory).

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to