模板:Shc/doc:修订间差异
来自康健生活
< 模板:Shc
| 第16行: | 第16行: | ||
[[文件:bash-icon-svgrepo-com.svg|40px|无|替代=bash-icon-svgrepo-com|bash-icon-svgrepo-com]] | [[文件:bash-icon-svgrepo-com.svg|40px|无|替代=bash-icon-svgrepo-com|bash-icon-svgrepo-com]] | ||
[[文件:mysql-icon-svgrepo-com.svg|40px|无|替代=mysql- | [[文件:mysql-icon-svgrepo-com.svg|40px|无|替代=mysql-icon-svgrepo-com|mysql-icon-svgrepo-com]] | ||
==Example== | ==Example== | ||
2026年11月5日 (四) 18:30的版本
Inline code.
Usage
格式:
{{shc|1|2|3}}
有三个参数
{{shc|<syntaxhighlight lang="bash">
code</syntaxhighlight>||#}}
{{shc|<syntaxhighlight lang="bash">
code</syntaxhighlight>|bash|#}}
- 1: 输入高亮代码内容
- 2: 输入logo的名称以便指向相应的logo的svg文件,如bash指向bash-icon-svgrepo-com.svg
- 3: 输入自定义内容(完全自定义时可缺省)
现在支持的logo有:bash、mysql
Example
bash 缺省
#
code
bash
#
code
自定义附带文本
/home/kwy
code