Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CSS/scripts in html_render_diff customizable #195

Open
Mr0grog opened this issue Feb 3, 2025 · 0 comments
Open

Make CSS/scripts in html_render_diff customizable #195

Mr0grog opened this issue Feb 3, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Mr0grog
Copy link
Member

Mr0grog commented Feb 3, 2025

Some researchers have used this package in their work, but need to be better able to customize the CSS and scripts that are automatically inserted into the diff. Right now, you can customize the colors via the DIFFER_COLOR_INSERTION and DIFFER_COLOR_DELETION, but that’s it.

There are probably a lot of ways to do this and a few open questions to answer:

  • Are we adding to the existing styles/scripts or replacing them?
  • Should this also be available via env vars? Presumably they would specify the path to a style or script file to include.
  • Should this be available through the server? Obviously (I think?) it would be available as an argument to the diff function (probably pass in a style/script string, rather than path to file).

/cc @lesleyodu for any additional feedback/input here.

@Mr0grog Mr0grog added the enhancement New feature or request label Feb 3, 2025
@Mr0grog Mr0grog changed the title Make CSS in html_render_diff customizable Make CSS/scripts in html_render_diff customizable Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant