Site Notice

hello, world

Difference between revisions of "Highlight"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
([InPageEdit] 没有编辑摘要)
Line 8: Line 8:
 
</pre>
 
</pre>
  
<pre class="highlight lang-js" data-line-from="3">
+
<pre class="highlight lang-js linenums" data-line-from="3">
// line from 3
+
// line start from 3
 
$('.abc').html('<span>some thing.</span>');
 
$('.abc').html('<span>some thing.</span>');
 
</pre>
 
</pre>
  
<pre class="highlight lang-js" data-line-ping="2">
+
<pre class="highlight lang-js linenums" data-line-ping="2">
 
// line 1
 
// line 1
 
$('.abc').html('<span>some thing.</span>');
 
$('.abc').html('<span>some thing.</span>');
 
// line 3
 
// line 3
 
</pre>
 
</pre>

Revision as of 21:41, 29 October 2020

$('.abc').html('<span>some thing.</span>');
// Has line numbers
$('.abc').html('<span>some thing.</span>');
// line start from 3
$('.abc').html('<span>some thing.</span>');
// line 1
$('.abc').html('<span>some thing.</span>');
// line 3