lxzliuxinzhu / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

Ability to add css classes on output element #55

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Don't see a spot for Feature Requests...

To allow for additional customizations, it would be nice to have the
ability to add css classes to the output div element. 

<div class="dp-highlighter".../>

I've added a work around into my code that uses jQuery and adds additional
classes by grabbing the value of the "copyclass" attribute on the textarea
or pre into the output. This gives me a short term fix, but it would be
great if similar functionality were added to the code base so I don't
always have to update my local copy.

$(highlighter.div).addClass($(element).attr("copyclass"));

Results in:

<div class="dp-highlighter myClass1 myClass2"... />

Original issue reported on code.google.com by lewi...@gmail.com on 8 Feb 2008 at 4:19