Need help? Check out our Support site, then

Highlight code blocks with syntaxhighlighter?

  1. 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

  2. thistimethisspace

    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.

  3. 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:

    Sorry about that.

Topic Closed

This topic has been closed to new replies.

About this Topic