CLI
shikiphp ships a small command-line tool at bin/shikiphp (installed as
vendor/bin/shikiphp in your project). It has three commands.
highlight
Highlight a file to HTML, printed to stdout.
vendor/bin/shikiphp highlight <file> [--lang=<lang>] [--theme=<theme>]--lang— the language id. If omitted, it is inferred from the file extension (falling back totxt).--theme— the theme id. Defaults togithub-dark.
vendor/bin/shikiphp highlight src/App.php --lang=php --theme=nordlangs
List every bundled language id, one per line.
vendor/bin/shikiphp langsthemes
List every bundled theme id, one per line.
vendor/bin/shikiphp themesHelp
Run with no command, or -h / --help / help, to print usage.
vendor/bin/shikiphp --help