10

It seems like indentations could be useful in a variety of circumstances, including formatting quotes of Scripture. For example, we're all familiar with how publishers often indent verses in Psalms and Proverbs.

Maybe it's just me, but IMO the following quote just doesn't look right without the second and fourth lines indented:

Yet it was the Lord’s will to crush him and cause him to suffer,
and though the Lord makes his life an offering for sin,
he will see his offspring and prolong his days,
and the will of the Lord will prosper in his hand.

I checked the C.SE help page for markdown, and I already know about forcing newlines by adding trailing spaces. Is there a way to use Markdown to add indentations within block quotes?

3 Answers 3

10

With a little knowledge of HTML you can do what you are looking for:

Yet it was the Lord’s will to crush him and cause him to suffer,
     and though the Lord makes his life an offering for sin,
he will see his offspring and prolong his days,
     and the will of the Lord will prosper in his hand.

Here is what is exactly typed above:

> Yet it was the Lord’s will to crush him and cause him to suffer,  
     and though the Lord makes his life an offering for sin,  
he will see his offspring and prolong his days,  
     and the will of the Lord will prosper in his hand.

Notice the double space at the end of each line. That is the markdown for a line break. You need that or the text will wrap and it will look weird with all those spaces.

So do this:

  1. Type a line
  2. Put two spaces at the end for a line break
  3. Use   to insert a non-breaking space. You can insert as many as you want. I did five.
  4. Repeat as necessary.
6
  • 2
    +1; This is typically how I deal with quoting poetry with the indents on the main site.
    – El'endia Starman Mod
    Commented Jul 26, 2013 at 3:42
  • I failed to mention that there is no way I know of to do this in markdown.
    – user3961
    Commented Jul 26, 2013 at 4:17
  • @fredsbend the code markdown (5 spaces at the beginning of each line or after a quote symbol) will force text to appear as entered.
    – wax eagle Mod
    Commented Jul 26, 2013 at 14:01
  • 1
    @waxeagle which also changes the font to a rather ugly mono-spaced font. It would certainly work, however, I think it is ugly.
    – user3961
    Commented Jul 26, 2013 at 17:50
  • @fredsbend preformatted text should be rendered monospace. But if there is a better monospace font we could ask for that.
    – wax eagle Mod
    Commented Jul 26, 2013 at 19:42
  • @waxeagle You missed my point. Mono-spaced fonts are inherently ugly, imo. Though they are quite useful when coding.
    – user3961
    Commented Jul 26, 2013 at 20:39
1

This is where the fact that SE is built for programmers comes in handy.

If you want to use preformatted text, the best thing to do is to use the code block syntax

That's five spaces before the line:

 This will turn out      just how I typed it.

That's how I usually quote poetry.

If your quoting you can do

This will appear as code!
    see the indent!
2
  • Are you sure? I'm trying to find out how to indent text on a newline within a block quote. Maybe I'm missing something... Commented Jul 26, 2013 at 2:50
  • @PhilipSchaff you can use the code syntax with a quote. Lemmie edit to demo.
    – wax eagle Mod
    Commented Jul 26, 2013 at 2:54
1

Um...

 Do you
       mean like this?
 >      Do you
 >            mean like this?
2
  • It's difficult to see how that quote was formatted, since meta doesn't allow editing others' posts to view the source. Commented Jul 26, 2013 at 3:24
  • I forgot about that.
    – Ryan Frame
    Commented Jul 26, 2013 at 3:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .