jgm / jgm/skylighting

Add `--list-styles` CLI option

Open
#141 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
218
Forks
67
PR merge metrics
No merged PRs in 30d

Description

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

https://github.com/jgm/skylighting/blob/8b2b85aec695e6618720582f989e47691cb70b68/skylighting/bin/main.hs#L131-L139

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.