码迷,mamicode.com
首页 > 其他好文 > 详细

高亮显示代码部分

时间:2015-10-19 15:31:06      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:


1,高亮显示代码标签(<code>)
技术分享
For example, <code>&lt;section&gt;</code> should be wrapped as inline.

2,显示代码块

<pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>



3,变量

y=m*x+b
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>

4,程序输出

<samp>This text is meant to be treated as sample output from a computer program.</samp>

我觉得输出的字体字体间有点间隔,字体样式比较正式。适用于输出结果。
 
 

高亮显示代码部分

标签:

原文地址:http://www.cnblogs.com/xiaoyunyun/p/4891777.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!