crayon-syntax-highlighter icon indicating copy to clipboard operation
crayon-syntax-highlighter copied to clipboard

Add a new class to crayon div wrapper with a language specified

Open keeprock opened this issue 8 years ago • 0 comments

I would like to suggest an improvement. It will be nice to have an ability to customize output even more by providing developer with a new class inside div wrapper.

Take a look here:

screen shot 2016-08-04 at 11 12 58

If you we can put something like «crayon-language-js» in here, we instantly allow ourselves to display, for example, a custom title with a language specified. Something similar being done on CSS-Tricks:

screen shot 2016-08-04 at 11 17 10

I think that, information about a language is already there, in a code, we just need to display it in an appropriate way. Correct me, if I wrong.

keeprock avatar Aug 04 '16 08:08 keeprock