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

  1. Jon Brown
    Posted 4 years 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.


  2. Michael
    Part-Time Forum Moderator
    Posted 4 years 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
    Posted 4 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic