stable

Clone or download

Read-only

Have syntaxe colorization

Part of story #11667 display diff side by side This patch fixes the syntax colorization of files. It adds 281 kib to the final build of pullrequest.js I have limitated the modes to the whitelist defined in pullrequest/include/PullRequest/REST/v1/MimeDetector How to test: - text/plain files and unsupproted languages are not colorized - Other files are colorized Change-Id: Id54eecff55210c3a8843104a0b1cfc3a11605a15

Modified Files

Name
A plugins/pullrequest/www/scripts/src/app/file-diff/diff-modes/modes.js +64 −0 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/file-diff/diff-modes/side-by-side-diff-component.js +2 −0 Go to diff View file
M plugins/pullrequest/www/scripts/src/app/file-diff/diff-modes/unidiff-component.js +2 −1 Go to diff View file