模板:Shc out/doc:修订间差异
来自康健生活
| 第35行: | 第35行: | ||
code && \ | code && \ | ||
code && \ | code && \ | ||
code | code</syntaxhighlight>|<syntaxhighlight lang="bash"> | ||
code out</syntaxhighlight>|#|/root}} | code out</syntaxhighlight>|#|/root}} | ||
2022年12月17日 (六) 16:35的最新版本
Inline code.
Usage
格式:
{{Shc_out|1|2|3|4}}
有四个参数
{{Shc_out|<syntaxhighlight lang="bash">
code</syntaxhighlight>|<syntaxhighlight lang="bash">
code</syntaxhighlight>|#|/root}}
{{Shc_out|<syntaxhighlight lang="bash">
code</syntaxhighlight>|<syntaxhighlight lang="bash">
code</syntaxhighlight>|$|/home/kangkk}}
- 1: 输入高亮代码内容
- 2: 输出内容
- 3: 输入使用 # 或者 $ 或者自定义内容
- 4:输入自定义内容(完全自定义时可缺省)
Example
#
[jian@kang /root]#
code
code out
$
[jian@kang /home/kangkk]$
code
code
MYSQL
mysql>
code
code
输入多行命令
[jian@kang /root]#
code && \
code && \
code
code out