Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
RobLoachPushing over to Geshi Filter. Seems like a neat feature. Not sure how we'd get around it without editing all the language files though.
Comment #2
soxofaan CreditAttribution: soxofaan commentedI 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.
Comment #3
nicholas.alipaz CreditAttribution: nicholas.alipaz commentedI 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.
Comment #4
boombatower CreditAttribution: boombatower commented#2 indicates that this should be done upstream.