How can I add a class to each <pre> element before running syntaxhighlighter?
<p>I have the following code:</p>

<pre><code>    $.fn.addTemplateSetup(function () {
        this.find('pre').each(function (i) {
            SyntaxHighlighter.highlight({}, this);
        });
    });
</code></pre>

<p>It finds each  element and then runs SyntaxHighlighter on it. </p>

<p>Before highlighter runs I want to change each <code>&lt;pre&gt;</code> that is inside a <code>&lt;div&gt;</code> with a class of text into <code>&lt;pre class='brush: plain'&gt;</code> </p>

<p>Should I do this inside the first function, should i use another this.find?</p>
