Add support for using the "diff" lexer + code syntax highlighting

Issue #1339 new
Javier Eguiluz
created an issue

We've started using "diff" in some code samples as an easier way to show the reader the changes that they need to make. However, using "diff" disables all the original code syntax highlighting.

My feature request is to add support for diff + syntax highlighting, as done by GitHub.


Comments (3)

  1. Tim Hatch

    Two potential problems with this -- if the diff hunk starts in the middle of something (like a string), and if the change results in a difference of the context lines' highlighting. It's worth coding a prototype though.

  2. Log in to comment