SyntaxHighlighter Evolved
How to override themes for each code snippet? (2 posts)

  1. chepukha
    Posted 3 years 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]



  2. Alex Mills (Viper007Bond)
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SyntaxHighlighter Evolved
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic