- BBCODE
[TC="{TEXT1}"]{TEXT2}[/TC]
- HTML替换代码
<dl class="codebox" style="font-family: Consolas; font-weight:bold;"><dt style="border-bottom:1px solid #BBB; font-size:0.9em"><a href="#" onclick="selectCode(this); return false;">{TEXT1}</a></dt><dd><code style="white-space: pre-wrap; overflow: hidden; max-height: none;">{TEXT2}</code></dd></dl>
- 提示文本
[TC="title"]{CODE}[/TC]
TC 可以改成别的字符,但不能和已有的BBCODE关键字冲突
2016-09-28
HTML替换代码中的dl改为了 div,具体原因忘了=_=
代码: 全选
<div class="codebox" style="font-family: Consolas; font-weight:bold;"><dt style="border-bottom:1px solid #BBB; font-size: 0.9em;"><a href="#" onclick="selectCode(this); return false;">{TEXT1}</a></dt><code style="white-space: pre-wrap; overflow: hidden; max-height: none;">{TEXT2}</code></div>