apply name= and class to tag <pre>
<p>the code for syntax highlighter is <code>&lt;pre name="code" class="cpp"&gt;</code> but typing this is time consuming so using jquery I want to apply to each and every <code>&lt;pre&gt;</code> class which is cpp and name which is code ie <code>name="code"</code></p>

<p>here's what I think you would do for adding the cpp class</p>

<pre><code>&lt;script&gt;$("pre").addClass("cpp");&lt;/script&gt;
</code></pre>

<p>but how do you apply a name value?</p>
