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 a -lang option for setting the highlighting language #180

Merged
merged 12 commits into from
Jan 2, 2024

Commits on Jan 1, 2024

  1. Modify the highlighting API

    This changes the highlighting API to take a string instead of a file
    because strings are what Chroma can highlight.
    
    With this change in place, we should invoke the highlighter after
    we're done reading the input. This will allow highlighting both files
    (as before) and streaming input.
    
    This also moves the responsibility of checking the file against the max
    highlight size from the highlighter to the caller.
    walles committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    2d2844f View commit details
    Browse the repository at this point in the history
  2. Update one test

    walles committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    d8d7637 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    52e04a6 View commit details
    Browse the repository at this point in the history
  4. Fix a test

    walles committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    855a6bf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6c86039 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2024

  1. Configuration menu
    Copy the full SHA
    b7603ea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cfbbcb7 View commit details
    Browse the repository at this point in the history
  3. Remedy a warning

    walles committed Jan 2, 2024
    Configuration menu
    Copy the full SHA
    a6d6219 View commit details
    Browse the repository at this point in the history
  4. Make the tests pass

    walles committed Jan 2, 2024
    Configuration menu
    Copy the full SHA
    4264d27 View commit details
    Browse the repository at this point in the history
  5. Fix some error messages

    After testing. The invalid value is already printed by the framework, no
    need to include it in the error message.
    walles committed Jan 2, 2024
    Configuration menu
    Copy the full SHA
    cd2a8a9 View commit details
    Browse the repository at this point in the history
  6. Tune --lang explanation

    walles committed Jan 2, 2024
    Configuration menu
    Copy the full SHA
    cb07ce3 View commit details
    Browse the repository at this point in the history
  7. Add --lang to the man page

    walles committed Jan 2, 2024
    Configuration menu
    Copy the full SHA
    d5fb484 View commit details
    Browse the repository at this point in the history