Proposal for HVML half-tag (For Chinese:关于HVML半标签的提案) #36
situdesign
started this conversation in
General
Replies: 1 comment 2 replies
-
你这描述得不够清楚啊,不是很懂啊,什么叫可以只修改一格? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
<hello> This is called a TAG
<hello | tail> This is called a GROUP TAG
<hello|, or |tail> are called HALF TAG
Benefit: When modifying a large table, you can change only one cell, without refreshing the whole table.
Examples of usage:
<name | age | gender | class | score>
<name|
hvml code
|name>
<age|
hvml code
|age>
......
</name || score> (double vertical lines indicate omission so that the closing tag does not have to be full spellings.)
Also, considering that the symbol '|' is tedious to type, you can use '\' instead of '|'
<name \ age \ gender \ class \ score>
......
</name \\ score>
For Chinese:
<hello> 这个叫标签
<hello | tail>这个叫组标签
<hello| 或 |tail>这个叫半标签
好处:修改一个大表格时,可以只改一格,不需要整体刷新。
用法举例:
"<name | age | gender | class | score>"
"<name|"
" 代码"
" |name>"
"<age|"
" 代码"
" |age>"
"……"
"</name || score> (双竖线表示省略,这样关闭标签不必全写)"
此外,考虑到符号“|”在输入时比较费事,可以用“\”代替“|”
"<name \ age \ gender \ class \ score>"
"……"
"</name \\ score>"
Beta Was this translation helpful? Give feedback.
All reactions