You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The obvious answer is: the web is document based + has a lot of baggage & even comparing the previous examples with the pseudo-HTML examples, I notice the pHTML examples take a lot more text to write how. Hmmmm, will keep thinking, feel free to comment with alternative ideas or extensions to this little DSL!
The text was updated successfully, but these errors were encountered:
In the Discord @zspotter suggested something like:
I like this idea of an inline DSL for transforming sections of text ... could even do:
[fsize 10] bigger text
bigger text
[bg red fg green]
(apologies for the garish colors, it's just to demonstrate the point)
It's worth asking the question: how useful is making our own DSL versus adopting HTML parsing? e.g. for the above:
<h1>bigger text</h1>
<span style="color: red; background-color: green">green text</span>
OR<span class="fgGreen bgRed">green text</span>
The obvious answer is: the web is document based + has a lot of baggage & even comparing the previous examples with the pseudo-HTML examples, I notice the pHTML examples take a lot more text to write how. Hmmmm, will keep thinking, feel free to comment with alternative ideas or extensions to this little DSL!
The text was updated successfully, but these errors were encountered: