alexgorbatchev/SyntaxHighlighter — pull request #218 by m4n2b (2013-05-27 05:38:49+00:00)
Title: Add annotation and line specific highlight feature

This patch allows to specify a highlight class for each line as you can see it here:

/*----------------------------------------------------------------------------*/
/**
* \file mynoop.c
*
*/
#include "something.h"
int j;
for(j = 0; j < 1000; j++){
asm("nop");
}
/*--- End of file ------------------------------------------------------------*/

The resulting HTML will be:

?

1

2

3

4

5

6

7

8

9

10

11

/*----------------------------------------------------------------------------*/

/**

* \file mynoop.c

Filename does not match;

I'm not sure the file is properly named

*

*/

#include "something.h"

this file does not exist

int

j;

for

(j = 0; j < 1000; j++){

asm(

"nop"

);

}

/*--- End of file ------------------------------------------------------------*/