Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for coloring using pygments. #24
This functionality requires the pygmentize script to be present on the system in a location pointed to by shell's
The user may choose which renderer to use by setting the
Additionally, support for specifying renderer options has been added. This allows the user to fine-tune the output. Ie.
Does that do anything to sanitize the input before passing it to a shell (by way of
Even if it does sanitize the input, it would probably be better to use a different interface without that problem. Not sure if using the inferior-shell DSL instead of a string is better in that regard or not. Possibly calling uiop:run-program directly would be best.
Might also be nice to be able to override the command (and command-line) instead of hard-coding for
Looks like it was possible to execute arbitrary shell commands, and also pygments itself has an option to overwrite arbitrary files, so rewrote some of it to try to avoid those problems. Still not sure i'd wan to use it on untrusted input, but hopefully it is a bit safer (not that i have any idea how safe colorize is either).