Need help? Check out our Support site, then


Highlight block of lines in a sourcecode

  1. I am trying to highlight a block of lines in a piece of sourcecode. I have tried to define the range of lines to be highlighted in the sourcecode shortcode with the option parameter highlight, but it doesn't work.

    I need to list all the numbers withing that range, which is pretty ugly:

    [sourcecode language="cpp" highlight="26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48"]

    There is nothing helpful for this purpose in: http://en.support.wordpress.com/code/posting-source-code/

    Is there any way i can do it with say: highlight="26-48" etc. If not i would like to see this feature.

    The blog I need help with is phoxis.org.

Topic Closed

This topic has been closed to new replies.

About this Topic