Last active
September 21, 2023 11:15
-
-
Save xentec/133240920aff74c3f7e9c8865eb9ddf7 to your computer and use it in GitHub Desktop.
Highlight syntax of input
This file contains hidden or 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
#!/usr/bin/env fish | |
# Example: cat index.html | ./slight.fish html | |
# cat main.c | ./slight.fish c | |
set -l syntax $argv[1] | |
exec kate-syntax-highlighter /dev/stdin \ | |
--syntax $syntax \ | |
--output-format ansi256Colors \ | |
--no-ansi-background \ | |
--theme Oblivion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment