WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. chepukha
    Member
    Posted 1 year 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/

  2. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 1 year 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

About this Topic