diff2html
diff2html copied to clipboard
set highlight language with `highlightLanguage` option
Add option highlightLanguage to set the highlight language. Default value is '' to select the language based on the diffed filename extension.
This is related to #437.
👋 @quentin thanks for your contribution.
It looks good over all, but would be nice if we could pass a map instead of the string.
The map could be from extension -> language and that way we could support multiple extensions and even overrides.
Would you be able to adjust the PR?