Does anyone know examples (or name of the pattern)...
# thinking-together
b
Does anyone know examples (or name of the pattern) of markup formats where instead of writing format directives inline <b>like this</b> you do it out-of-the-line like:
Copy code
text writing format directives inline like this
 bold like this
a
I'm not sure I understand your example. Is the line
bold like this
a directive to bold the substring "like this" in the previous line?
b
Yes. Of the form [bold|italic|underline|...] [text string to match]
The text is in blue, the format directive in purple, and the search string in yellow:
So this example would compile to html like
<p>writing format directives inline <b>like this</b></p>
k
s
codexeditor on Twitter calls them standoff properties.
🙏 1
m
roff/troff/nroff?
Copy code
.nf
.ll 4.0i
.in 2.0i
101 Main Street
Morristown, NJ  07960
15 March, 1997
.sp 1i
.in 0
Dear Sir,

.fi
.ti 0.25i
I just wanted to drop you a note to thank you for spending the
time to give me a tour of your facilities. I found the experience
both educational and enjoyable. I hope that we can work together
to produce a product we can sell.
🙏 1
j
Gordon Brander’s Subtext is a bit like this (format interpretation by single character at the beginning of each line)
❤️ 1
b
Thanks @Joe Trellick! I don't think I saw that. Very similar (or using the terms from the post "convergent evolution").
Thanks for the pointers everyone! I made an initial implementation. https://breckyunits.com/aftertext.html
💖 1
c
It’s cool to be able to see more examples and get a better idea of what it would be like. Now that you’ve played with it for real, what do you think about the after text formatting idea, @Breck Yunits?
b
@Cole I really like it for links. For formatting like bolding et cetera, it's fine but I wouldn't call it an improvement (maybe a slight regression). So perhaps directives that take 1+ parameter like links are where it could shine. In other words, where you'd have HTML tags with multiple attributes this might be an improvement.
👍 1
I think there are more interesting moves at a higher level with other node types, but I'm glad aftertext is in and works and might prove more useful in the future
👍 1