I have been trying for several days now to figure out how I can add a class to a fotmatting option element within Redactor.
By default the formatting option for "Code" wraps the content in the <pre></pre> or <code></code> html elements. However I need to make redactor use <pre class="prettyprint linenums"></pre> or <code class="prettyprint linenums"></code> instead.
Does anyone know of an easy way to do this? I have been emailing Redactor support back and forth for days and have tried the one link they provided me to their documentation (http://imperavi.com/redactor/docs/settings/formatting/#setting-formattingAdd), but it just breaks the entire thing...
PS: I am pretty much javascript retarded, I can't get a grasp or understand how it works and have trouble doing anything related to js.
How can I add a class to redactor's "Code" formatting option which wraps content in a pre HTML element?