SyntaxHighlighter 使用参考(五) – first-line 属性

Name(属性名) Value(默认值) Description(描述)
first-line 1 该属性用来控制起始行的行号。


例:first-line: 10 的 HTML 代码及显示效果

HTML 代码

<pre class="brush: cpp; first-line: 10">
  this is now tenth line,   
  and this is eleventh!
</pre>

 

显示效果

  this is now tenth line,
  and this is eleventh! 

系列文章索引:http://www.cnblogs.com/duxiuxing/archive/2012/05/29/2524243.html
posted @ 2011-10-17 09:33  杜修杏  阅读(427)  评论(0编辑  收藏  举报