You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'd need a set of regular expressions for all the main languages, I don't want to implement and maintain that. But given that we're already using a library to highlight the diff (https://highlightjs.org/) which does that already, maybe there would be a possibility to reuse it to highlight a short snippet of code. We'd have to parse the diff to reliably extract the file extension and deduce the language, then extract the portion we want to highlight (All code snippets? Just the modified lines?), then highlight them without breaking the formatting of the message (and figure out how to mark additions/deletions on top of that).
Nothing undoable, but that's more work than I can afford to spend on this add-on at the moment. You're welcome to try something if you feel like it :)
Original issue reported on code.google.com by
[email protected]
on 14 Jul 2007 at 10:39The text was updated successfully, but these errors were encountered: