Replies: 7 comments 27 replies
-
FWIW, I love the idea, I find the advantages much stronger than the ease-of-writing drawback. The advantage 2 is a bit weakened by the fenced verbatim blocks, but the special syntax is justified by the fact that they don't nest and keeping the verbatim bytes contiguous and unprocessed. The advantage 3 is a bit weakened by the interaction with hard wrapping, if it works like block quotes. I don't expect to find the end of an inner div without syntax hilighting or writer cooperation. But even with such weakening, I'm still massively in favor of side-marked divs, be it in addition or in replacement of fenced divs. |
Beta Was this translation helpful? Give feedback.
-
Don't some of those points make a similar case against lazy paragraph continuation, including the points about readability over writability and proper editor support? Conversely, the main case for fenced divs, that they are easier to write, is the same justification for laziness. Not trying to conflate separate issues, but wondering if there is philosophical or practical position that justifies one but not the other. Note that nesting is no longer perspicuous for side-marked when laziness is occurs:
|
Beta Was this translation helpful? Give feedback.
-
The main disadvantage with side-marking as far as I am concerned is that it makes it hard to reflow text/format paragraphs without first removing the side-marking, which shouldn't be needed. I already think side-marked block quotes a nuisance for this reason. It's not hard to write the first time, but to go back and edit is very hard! There is a reason why block comments were invented! It is true that it is easier to see how side-marked blocks are nested but |
Beta Was this translation helpful? Give feedback.
-
This is quiet a departure from the existing syntax. I did a small informal test-drive on my blog (which has very few divs) and on my presentation (which uses divs (but not nested divs) heavily). I must say that I like side-marked version quiet a bit more! Some things I've noticed:
side marking makes that obvious:
reads better than
I'd love the side-marked version to preserve this syntactic place for the main class. |
Beta Was this translation helpful? Give feedback.
-
I find both useful. For long stretches of text, fenced div blocks make editing easier and cause less visual clutter – e.g. when using CSS to layout HTML slides: :::::: side-by-side
::: left
Several
lines
of
text
:::
::: right
Several
lines
of
text
:::
:::::: For things such as notes, this seems neat: {.warning}
: **Don’t do this!**
:
: Things can go wrong! With this kind of quoting, I’d avoid nesting, though. |
Beta Was this translation helpful? Give feedback.
-
Two issues with using
There's no rule that says: "if there's both a fenced and a side-marked syntax for the same thing, then both should use the same marker character." In fact they should not, since a good fence character does not make a good side-marking character (for example, code blocks use backticks/tildes as a fence, but space/indentation as a side-marker). The best-looking side-marking character is, hands down, the pipe The
The |
Beta Was this translation helpful? Give feedback.
-
Just an additional thought here: the more I think about it, the more I like and appreciate that, when there is a fenced syntax, you can use as long a fence as you like (of course, with the rule about how outer fences must be longer than nested inner ones):
So, even if a given character isn't great as a fence marker, at least if you put a bunch of them, it looks pretty good regardless. Aside: of course, just as the all-time best ascii side-marker character is the pipe
Anyhow, I mention this for 3 reasons:
|
Beta Was this translation helpful? Give feedback.
-
Fenced divs look like this:
Compare that with side-marked divs:
The side-marked syntax has several advantages:
People generally prefer to write fenced divs, but of course our emphasis is on readability. Note that writing side-marked divs is not at all hard with proper editor support, and complex divs are not something one normally needs in, e.g. a web form, where one lacks proper editor support.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions