-
-
Save Vaysman/9053305 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You will need the pygments and xclip packages | |
# This example highlights some Bash source code | |
# '-O noclasses=true' tells pygments to embed colors inline in the source | |
# the '-t text/html' option tells xclip what "target" to specify for the selection | |
pygmentize -l java -f html -O noclasses=true,encoding=utf-8 Main.java | pbcopy | |
# Another example | |
pbpaste | pygmentize -l ruby -f rtf -O noclasses=true,encoding=utf-8 | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment