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

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CADjGqHsMYxOJ%2BBUqptXRY%2Bb4Chyb0%3DtFaNPmSkb62-Kj%3D66aTQ%40mail.gmail.com.

Reply via email to