Site Notice
hello, world
Difference between revisions of "Highlight"
From Project-EPB Commons
m ([InPageEdit] 没有编辑摘要) |
|||
Line 6: | Line 6: | ||
// 显示行号 | // 显示行号 | ||
console.log('hello, world') | console.log('hello, world') | ||
− | |||
</pre> | </pre> | ||
− | <pre class="highlight lang-js | + | <pre class="highlight lang-js" data-line-from="3"> |
// 行号会从 3 开始 | // 行号会从 3 开始 | ||
console.log('hello, world') | console.log('hello, world') | ||
− | |||
</pre> | </pre> | ||
− | <pre class="highlight lang-js | + | <pre class="highlight lang-js" data-line-ping="[2,4]"> |
− | // | + | // 第 2 以及第 4 行会高亮显示 |
console.log('hello, world') | console.log('hello, world') | ||
+ | console.log('i\'m javascript') | ||
+ | console.log('pinged line!') | ||
</pre> | </pre> |
Revision as of 22:18, 29 October 2020
console.log('hello, world')
// 显示行号 console.log('hello, world')
// 行号会从 3 开始 console.log('hello, world')
// 第 2 以及第 4 行会高亮显示 console.log('hello, world') console.log('i\'m javascript') console.log('pinged line!')