Highlight code blocks with syntaxhighlighter?

  • Author
    Posts
  • #1095036

    ehmatthes
    Member

    Hi,

    I have just started using syntaxhighlighter on my free account. I can highlight lines by giving individual line numbers, but I was wondering if there was any shortcut for highlighting code blocks. For example, I can do:
    [sourcecode language="python" highlight="11,12,13,14,15"]

    but I’d like to do something like:
    [sourcecode language="python" highlight="11-15"]

    But that syntax doesn’t work. Does anyone know if there is a shortcut for this?

    The blog I need help with is peak5390.wordpress.com.

    #1095195

    What I know about writing source code and posting source code would be lonely on the head of a pin. I have tagged this thread for Staff assistance. Please subscribe to the thread so your are notified when they respond.

    #1095223

    kathrynwp
    Staff

    I’m afraid it doesn’t look like that’s possible – it only accepts a comma-separated list.

    You can see the original documentation for the syntax highlighter we use here:
    http://alexgorbatchev.com/SyntaxHighlighter/manual/configuration/

    Sorry about that.

The topic ‘Highlight code blocks with syntaxhighlighter?’ is closed to new replies.