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?

||||||
9

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.
||||||
  • 2
    +1; This is typically how I deal with quoting poetry with the indents on the main site. – El'endia Starman Jul 26 '13 at 3:42
  • I failed to mention that there is no way I know of to do this in markdown. – 3961 Jul 26 '13 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 Jul 26 '13 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. – 3961 Jul 26 '13 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 Jul 26 '13 at 19:42
  • @waxeagle You missed my point. Mono-spaced fonts are inherently ugly, imo. Though they are quite useful when coding. – 3961 Jul 26 '13 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!
||||||
  • 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... – Philip Schaff Jul 26 '13 at 2:50
  • @PhilipSchaff you can use the code syntax with a quote. Lemmie edit to demo. – wax eagle Jul 26 '13 at 2:54
1

Um...

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

You must log in to answer this question.

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