Lisp-like html as a replacement to bbcode/markup/textile
94.249.190.129
Lisp-like html as a replacement to bbcode/markup/textile
1–10 of 83 posts
Re: Lisp-like html as a replacement to bbcode/markup/textile
#2Looks a lot like TeX, which is a good thing. In fact this might even be better. I'm tired so I might be missing an obvious weakness but to take the analogy a bit further here are some comparisons between this suggestion and a more TeX-like version.
The author's suggestion:
{b {i This is in italics and bold.}}
{Henny+Penny We can use google fonts anywhere if we just import them first with the google-font code}
{macro foobar {u {b %s}}}
TeX-like (yes I'm making up the keywords): {\b {\i This is in italics and bold.}}
{\font {Henny+Penny} We can use google fonts anywhere if we just import them first with the google-font code}
{\macro {foobar} {\u {\b #1}}}
I would definitely prefer the first alternative over the TeX-like. The analogy also suggests though that instead of HTML "" you could have a TeX-like atom "\br" instead of "{br}"; saves only one character, but easy to see inside a block of text.Re: Lisp-like html as a replacement to bbcode/markup/textile
#3Great idea, and so very obvious in hindsight.
Re: Lisp-like html as a replacement to bbcode/markup/textile
#4you mean like CURL? http://en.wikipedia.org/wiki/Curl_(programming_language) - used it years ago and it did not make my life easier.
Re: Lisp-like html as a replacement to bbcode/markup/textile
#5Looks interesting. I would have prefered the use of () in place of {} though.
Re: Lisp-like html as a replacement to bbcode/markup/textile
#6Something similar from the Tcl world: xmlgen / htmlgen http://wiki.tcl.tk/5976
Re: Lisp-like html as a replacement to bbcode/markup/textile
#7Looks interesting. I would have prefered the use of () in place of {} though.
That would require a lot more escaping when you aren't writing markup (as using parenthesis in regular writing is so common).
Re: Lisp-like html as a replacement to bbcode/markup/textile
#8Years trying to move the style to the css and be semantic in the html.
I like it, but comes a little bit late. 8 years ago probably was nicer.
Re: Lisp-like html as a replacement to bbcode/markup/textile
#9Minor downside: You have to ensure that the contents of a {code ..} block have all their open-brackets matched with close-brackets. This can be quite tricky with larger code examples. The bbcode [/code] equivalent is slightly less problematic.
Other than that it looks like a good alternative.
Re: Lisp-like html as a replacement to bbcode/markup/textile
#10I believe Clojure has something similar to what the OP is talking about thanks to Hiccup's macros: https://github.com/weavejester/hiccup