Forums

SyntaxHighlighter Evolved
V2 vs V3 styling - Zebra Stripes (3 posts)

  1. Jon Brown
    Member
    Posted 10 months ago #

    I hope this is already on the development plan... but I would really like it if I could use v3 (for easy highlight/copy/pasting without grabbing line numbers) but still get zebra stripes on the default style like V2 does.

    http://wordpress.org/extend/plugins/syntaxhighlighter/

  2. alchymyth
    The Sweeper
    Posted 10 months ago #

    i had the same 'problem';

    it is these lines in the /syntaxhighlighter3/styles/shTheme??????.css files:

    .syntaxhighlighter {
      background-color: #0a2b1d !important;
    }
    .syntaxhighlighter .line.alt1 {
      background-color: #0a2b1d !important;
    }
    .syntaxhighlighter .line.alt2 {
      background-color: #0a2b1d !important;
    }

    they obviously have all the same bg-color (color various between the files)
    for the time being, you could edit the plugin files;
    or as i did, add the same lines with differentiated bg-colors into style.css of your theme, to overwrite the plugin styles.

  3. Jon Brown
    Member
    Posted 10 months ago #

    I admit I didnt even look, but I assumed the line wrapping was the problem with the zebra stripes. If a line of code wraps it shouldn't change color but then that needs to be coordinated with the line number which in V3 is separate. I'll look later, if it's just CSS that'd be great, bit I suspect there is more to it.

Reply

You must log in to post.

About this Plugin

About this Topic