WordPress.org

Ready to get started?Download WordPress

Forums

SyntaxHighlighter Evolved
highlight="75-97" just highlights line 75 (4 posts)

  1. mgason
    Member
    Posted 2 years ago #

    Hi,
    I have this[code lang="php" firstline="56" highlight="75-97"] around my code. It only highlights line 75?
    see this post

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

  2. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 2 years ago #

    What post? :)

  3. dexbarrett
    Member
    Posted 2 years ago #

    mgason is right, but that only happens if you just have a range alone like in his example. highlight="75-97" will only highlight the line 75 but if you change it to highlight="3,75-97" it will work because you have the range 75-97 and also the line 3. A small bug i guess. By now if i have only a range i do this highlight=",75-97" so that it works.

  4. mgason
    Member
    Posted 2 years ago #

    I forgot about this post and did not have notify on I guess. I was just listing my lines. highlight="74,75,76,77,78" does work.
    Thanks dexbarret. I can confirm also that it works that way
    highlight="74-78" does not work
    highlight="74,75-78" does work

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic