german-software-123
german-software-123

Reputation: 105

File diff souce code highlighting

various JavaScript libraries provide syntax highlighting functionality to display code on a webpage. Some example for those libraries are:

However, these editors do not support highlighting chunks of a source file. I want to enable syntax highlighting for a diff like this one: https://github.com/reviewninja/review.ninja/commit/9bd4844f0009d3471dc010d9939262f4eb2603e5 .

I could not find a library supporting the describes scenario. Does any one of you guys know of a JavaScript library describing this scenario?

Thank you very much and best Regards,

Fabian

Upvotes: 3

Views: 1317

Answers (1)

trekforever
trekforever

Reputation: 3922

Most of these are inline syntax highlighting (which is what I assume you want, but some of them have side-by-side as well):

Upvotes: 3

Related Questions