chepukha
Member
Posted 6 months ago #
Instead of using settings to set themes for all the snippets, can I specify a certain theme or simply change the background color for a specific snippet? I would think of something like this:
[java bgcolor="green"]...[/java]
[bash bgcolor="black"]...[/bash]
[php theme="abc"]...[/php]
Thanks,
http://wordpress.org/extend/plugins/syntaxhighlighter/
Unfortunately the highlighting package I use in my plugin doesn't support this out of the box. Only a single theme is support.
I think it would be possible though if I modified each theme's CSS to only apply to containers with the theme's name and then having the shortcode wrap each code block in a CSS class with the theme's name but that would require a ton of work and is low on my list of things to do.