Skip to content

Add ANSI color support and customization#6

Open
ryoskzypu wants to merge 4 commits intoneilb:masterfrom
ryoskzypu:colors
Open

Add ANSI color support and customization#6
ryoskzypu wants to merge 4 commits intoneilb:masterfrom
ryoskzypu:colors

Conversation

@ryoskzypu
Copy link

Rationale

Color support improves diff readability, but Text::Diff currently lacks it. Built-in ANSI color support would avoid fragile external wrappers (e.g. colordiff) or duplicated subclass code. Provide a configurable API for enabling colors and customizing palettes.

Color support improves diff readability, but Text::Diff currently
lacks it. Built-in ANSI color support would avoid fragile external
wrappers (e.g. colordiff) or duplicated subclass code. Provide a
configurable API for enabling colors and customizing palettes.

Changes (Diff.pm)

- Use three-arg open().

- Add ANSI color support and palette customization; document COLOR and
  PALETTE options in POD.

- Fix minor style and whitespace issues.

- Fix POD typo.

Changes (Table.pm)

- Remove unused Carp.

- Split file_footer() into private functions for testing.

- Add ANSI color support and palette customization.

- Fix minor style and whitespace issues.

- Fix POD formatting and typos.
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.

1 participant