i have an text area like this one which i write in it now now i want when onchange the textarea content appear in a pre i used
<textarea id="content" onchange="perview();"></textarea>
function perview() {
var code = $("textarea#content").val();
$('#code-preview').html(code);
}
i think every thing is ok
<pre id="code-preview"></pre>
but when using highlighter on the pre its not working like that
<pre id="code-preview" class="brush: php;"></pre>
the SyntaxHighlighter version 2.1.364 (October 15 2009)