Skip to content

Make highlighting more useful as a lib #43

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

Closed
wants to merge 3 commits into from

Conversation

Abscissa
Copy link

@Abscissa Abscissa commented Aug 2, 2013

Added a few features to the highlighter API, when using it as a library:

  • Optionally send output to arbitrary OutputRange instead of only stdout.
  • Add 'highlightBare' function which only outputs the span-highlighted code, without any wrapper HTML.
  • For 'highlightBare', optional prefix for CSS classes, for better CSS hygiene.

@Hackerpilot
Copy link
Collaborator

So this is supposed to be internal only, and not usable from the command line?

@Abscissa
Copy link
Author

Abscissa commented Aug 2, 2013

It's not intended to be unusable from the command line, I just didn't actually add a cmdline interface for it. I could do that if you'd like.

My primary interest for these particular features was being able to link Dscanner into another program (ex: a blog system) and use the highlighter that way.

Vladiwostok pushed a commit to Vladiwostok/D-Scanner-OG that referenced this pull request Dec 12, 2024
Vladiwostok pushed a commit to Vladiwostok/D-Scanner-OG that referenced this pull request Jan 12, 2025
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.

2 participants