How to highlight the first 10 characters of text using Javascript or jQuery?
<p>I want to highlight the first 10 characters of text and also color occurrences of the word "paragraph".</p>

<pre><code>&lt;html&gt;
 &lt;body&gt;
  This is a heading
  This is a paragraph.This is another paragraph.
 &lt;/body&gt;
&lt;/html&gt;
</code></pre>
