I think line highlighting would be extremely useful. Could be simple enough with the use of an additional input filter. Something like pastebin.com does. "To highlight particular lines, prefix each line with @@"

Comments

RobLoach’s picture

Project: DrupalBin » GeSHi Filter for syntax highlighting

Pushing over to Geshi Filter. Seems like a neat feature. Not sure how we'd get around it without editing all the language files though.

soxofaan’s picture

I think this should be done in the GeSHi library itself (feature request go here)
I'm not so keen on implementing this kind of features in the GeSHi filter module, which is basically just a Drupal wrapper around GeSHil lib.

Editing the language definition files would be a possible solutionworkaround, but an ugly one IMHO.
Another way could be indeed an additional input filter, that runs before GeSHi filter and translates the '@@' to some info that is embedded in the markup and then translated with some jQuery magic to highlighted lines. Just thinking out loud here.

But anyway, the cleanest solution would be implementing such a feature in the GeSHi library itself.

nicholas.alipaz’s picture

I think it might be odd to incorporate into the Geshi filter since the original pastebin does not do that. Pastebin actually does it outside of geshi. I think an additional input filter would be better IMO. Of course that filter might go in either DrupalBin or in GeshiFilter perhaps another module even, not sure.

boombatower’s picture

Status: Active » Closed (won't fix)

#2 indicates that this should be done upstream.