--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscribe@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/a8a487b5-ee7a-4a32-8405-fed9615c9ad1%40googlegroups.com.
I heartily agree, although, I would like to see the double forward slash used for single line comments and forward slash and star used as multi-line comments. Is there a reason why we cannot use forward slash? Maybe the double forward slash is already taken for italics.
\define "(comm)
$comm$
\end
<<" hey>>[
{
"type": "set",
"attributes": {
"name": {
"type": "string",
"value": "foo"
},
"value": {
"type": "string",
"value": "<!-- This is foo -->"
}
},
"children": [],
"params": []
}
][ { "type": "set", "attributes": { "name": { "type": "string", "value": "foo" }, "value": { "type": "string", "value": "<!-- This is foo -->" } }, "children": [], "params": [] } ]
The rendered output is:
{ "type": "widget", "children": [ { "type": "set", "attributes": { "name": "foo", "value": "<!-- This is foo -->" } } ] }
and then create the output, by converting the "value" into html code, which results in:
-mario
{
"type": "widget",
"children": [
{
"type": "set",
"attributes": {
"name": "foo",
"value": "<!-- This is foo -->"
}
}
]
}
have fun!
mario
\define foo()<!-- This is foo -->
\end
... heavily commenting inside macros imo isn't the best idea. ... performance wise.
\define slider (label,text)
...
\end
```
Use:
<<slider "label" "text">>
```Correcting an insinuation I made before:I just discovered the /* ... */ syntax is not only for CSS but also for multiline js comments. (Yes, I realize I'm the only one who didn't know). So that would be terrific.
-m