Skip to content
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

Add --list-styles CLI option #141

Open
not-my-profile opened this issue Jan 21, 2022 · 1 comment
Open

Add --list-styles CLI option #141

not-my-profile opened this issue Jan 21, 2022 · 1 comment

Comments

@not-my-profile
Copy link

Currently the values that the -S (--style) option accepts are only discoverable by looking at the soure code:

styleOf (Sty s : _) = case map toLower s of
"pygments" -> return pygments
"espresso" -> return espresso
"kate" -> return kate
"tango" -> return tango
"haddock" -> return haddock
"monochrome" -> return monochrome
"breeze-dark" -> return breezeDark
_ -> err $ "Unknown style: " ++ s

I think it would make sense to introduce a --list-styles option that would just list the available styles:

$ skylighting --list-styles
pygments
espresso
kate
tango
haddock
monochrome
breeze-dark

Analogous to pandoc --list-highlight-styles. If --list-styles is introduced it probably makes sense to rename --list to --list-syntaxes for consistency.

@jgm
Copy link
Owner

jgm commented Jan 21, 2022

Sure. Not a high priority for me, but I'd accept a PR.

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

No branches or pull requests

2 participants