Lists, spaces and tabs
CompletedAm I getting this right?
When I have a numbered list and do this. I am writing out the (space), in reality it is an actual space in the text.
1.(space)This is good.This is good.This is good.This is good.This is good.This is good.
2.(space)This is good.
This is how it shows up.

When I write numbered list and do this. Here I am using (tab) to show you what I am doing.
1.(tab)This is good.This is good.This is good.This is good.This is good.This is good.
2. This is good.

I read the syntax cheat sheet for MultiMarkdown and there is no tab after the period in the first item. But the syntax highlighting is different depending on whether I use spaces or tabs.
What is going on?
macosxguru
-
This trick simply takes advantage of elastic tabstops in the editor to indent long list lines. By using a tab between the list marker and the list item text, wrapped lines align with the top line,
This isn't part of the MultiMarkdown syntax, because it is purely cosmetic. There is no functional difference between the two.
0 -
Thank you for the explanation. I like the look of the bullet/number list indented, so will continue to use the tab after the period trick.
Can this be the default behavior? Both iA Writer and Ulysses have that as a part of the syntax definition style sheet those programs use to display lists.
macosxguru
0 -
It is the default behavior in that if you use tabs and have elastic tabstops enabled, this is what you see. If you prefer not to see wrapping like this, use spaces or disable elastic tabstops.
Tabs are handled differently in nvUltra because of the elastic tabstop functionality, which makes *much* more sense than fixed spacing for tabs (e.g. every 1/2 inch).
The other advantage of using tabs is that the initial text will align even in editors that don't support this trick, whereas they won't if you use spaces (in enumerated lists anyway).
0 -
Cool. Thanks for the explanation.
macosxguru
0
Please sign in to leave a comment.
Comments
4 comments