diff2html icon indicating copy to clipboard operation
diff2html copied to clipboard

set highlight language with `highlightLanguage` option

Open quentin opened this issue 3 years ago • 1 comments

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 avatar Jun 12 '22 14:06 quentin

👋 @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?

rtfpessoa avatar Jun 24 '22 20:06 rtfpessoa