TJ Luoma
unread,Jun 25, 2020, 11:26:10 PM6/25/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to BBEdit MailingList
I'm not sure how to describe this so I'm just going to show it.
Let's say that I have some text that looks like this:
Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Vel elit scelerisque mauris pellentesque.
Est pellentesque elit ullamcorper dignissim.
Elit scelerisque mauris pellentesque pulvinar pellentesque
habitant morbi tristique.
Duis tristique sollicitudin nibh sit amet commodo nulla.
Arcu non odio euismod lacinia at quis.
Enim sed faucibus turpis in.
Posuere ac ut consequat semper viverra.
Odio pellentesque diam volutpat commodo sed egestas egestas.
Porttitor lacus luctus accumsan tortor posuere ac ut.
Bibendum neque egestas congue quisque egestas.
Nisi lacus sed viverra tellus in.
Ullamcorper morbi tincidunt ornare massa eget egestas purus.
Sed elementum tempus egestas sed.
Purus in mollis nunc sed id semper.
Cras sed felis eget velit aliquet sagittis id consectetur.
And I want to make it look like this:
Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Vel elit scelerisque mauris pellentesque.
Est pellentesque elit ullamcorper dignissim.
Elit scelerisque mauris pellentesque pulvinar pellentesque
habitant morbi tristique.
Duis tristique sollicitudin nibh sit amet commodo nulla.
Arcu non odio euismod lacinia at quis.
Enim sed faucibus turpis in.
Posuere ac ut consequat semper viverra.
Odio pellentesque diam volutpat commodo sed egestas egestas.
Porttitor lacus luctus accumsan tortor posuere ac ut.
Bibendum neque egestas congue quisque egestas.
Nisi lacus sed viverra tellus in.
Ullamcorper morbi tincidunt ornare massa eget egestas purus.
Sed elementum tempus egestas sed.
Purus in mollis nunc sed id semper.
Cras sed felis eget velit aliquet sagittis id
consectetur.
The text isn't consistently formatted in any other way other than the
leading indent, if any, which is a tab (although I have changed it to
space here because gmail).
What I would like to be able to do is one of two things:
A) Ideally:
Select whole document and run "some command(s)" which will:
1. Leave any lines which are "flush left" on the left margin where they are
2. Leave the first indented line indented one tab
3. For each additional line, indent by one additional tab
4. Each "paragraph" or "block" will have a blank line between each
one, and a new paragraph will always start with the line that is not
indented at all.
B) If ideally isn't possible
Select a PORTION of text (some number of lines, at least 4 lines), and
run "some command(s)" which will increase the indent by one tab for
each line of the selected portion of text
For example, if there are 2 lines, I wouldn't bother selecting that
and running the command, because nothing needs to be done
If there are exactly 3 lines, I'll just manually indent the 3rd line.
If there are more than 3 lines, then I would select "line 3 and all
following lines" up to (but not including) the blank line, and each
line should be indented progressively more and more.
I hope what I am trying to describe is clear. Even more, I hope it is
possible, but if it is, I have no idea how.
Any ideas would be most welcome.
Thanks!
Tj