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

Add AnsiHtmlFormatter #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kdeldycke
Copy link
Contributor

@kdeldycke kdeldycke commented May 23, 2023

This change simplify the usage of the custom formatter a lot. To reflect this I extensively edited the README and restructure it so pygments-ansi-color is easier to approach.

At this point, ExtendedColorHtmlFormatterMixin is just becoming an implementation detail. You no longer need it directly as the user only needs to interact with AnsiHtmlFormatter. I took the liberty to add a deprecated message to its docstring.

I also:

  • detailed the integration with Pygments and unit-tested it
  • added the README as a package description to have it displayed on PyPi
  • added trove classifiers to improve discoverability
  • updated the list of external projects relying on pygments-ansi-color
  • points to ANSI-capable language lexers
  • associates ANSI lexer to file extensions

Closes #33.

@kdeldycke kdeldycke marked this pull request as draft May 23, 2023 11:32
@kdeldycke kdeldycke force-pushed the ansi-html-formatter branch 7 times, most recently from 842002b to 3b5f28d Compare May 23, 2023 14:20
@kdeldycke kdeldycke marked this pull request as ready for review May 23, 2023 14:51
@kdeldycke
Copy link
Contributor Author

All tests are passing and the code has been linted.

@chriskuehl This PR is ready for review.

@kdeldycke
Copy link
Contributor Author

👋 Hey @chriskuehl & @asottile, any news on my proposal from last month on my ready-to-use Ansi formatter for Pygments? 🤗

@kdeldycke kdeldycke force-pushed the ansi-html-formatter branch 3 times, most recently from 470b99f to 82887bd Compare May 18, 2024 14:09
@kdeldycke
Copy link
Contributor Author

I just fixed the remaining issues. Tests are passing and this PR is ready to be merged upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AnsiHtmlFormatter and ANSI-aware shell-like lexers
1 participant