Is it possible to instruct GeSHi (http://qbnz.com/highlighter/) to generate link to single line. For example if I show highlighted code on 'example.com/my-code' URL, I would like to be able to have link like: 'example.com/my-mode#line-69' or something like that...
Asked
Active
Viewed 97 times
1 Answers
0
Check the docs: http://qbnz.com/highlighter/geshi-doc.html#adding-ids-to-each-line
So you have to do
$geshi->enable_ids(true);
And then all the lines will have ids which you can link to.

Jakub Hampl
- 39,863
- 10
- 77
- 106
-
Uf, it is not really the happiest solution but I managed to work something out with JavaScript... – justme May 30 '10 at 18:49