模板:Hc/doc:修订间差异
来自康健生活
< 模板:Hc
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
Block code with header. | Block code with header. | ||
2020年2月18日 (二) 14:50的版本
Block code with header.
- Use Template:bc for block code without header.
- Use Template:ic for inline code.
Usage
1orhead: the code in the top pane2oroutput: the code in the bottom pane
{{hc|main.h|#include <stdio.h>}}
{{hc|head=main.h|output=#include <stdio.h>}}
Example
main.h
#include <stdio.h>