-
Notifications
You must be signed in to change notification settings - Fork 64
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
Exploring ALL Pandoc's Skylighting themes #142
Labels
Comments
badlydrawnrob
changed the title
Exploring _all_ Pandoc's Skylighting themes
Exploring ALL Pandoc's Skylighting themes
Jul 14, 2024
badlydrawnrob
added a commit
that referenced
this issue
Jul 15, 2024
1. Rename compilations to be explicit 2. Create a `data` folder 3. Copy `missing-stripped` and `simple-stripped` from Anki Child Theme 4. Update `package.json` settings 5. Remove `data.less` as we're not using it anymore 6. Remove old `missing.md` and `simple.md` (see 3. as they're replaced) 7. Remove Pandoc `template.html` as we're not using it anymore 8. Rename `pandoc/` to `data/` as it makes more sense 9. Remove `skylighting.json` as we're hardcoding styles You can create your own `json` file for Pandoc's Skylighting themes by running `pandoc --print-highlight-style pygments > my.theme` and replacing `pygments` with whatever theme you want to use. @ https://pandoc.org/chunkedhtml-demo/13-syntax-highlighting.html @ #142
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These themes are far from the best I've seen out in the wild, but they're very easy to shoo-in to the Anki Programming Theme, as the work has been done for me (simply copy from the
json
files). Code examples from here.When I find some spare time, I'll aim to create a custom highlighting theme that's nicer (we used to use
Solorized Light
andMonokai
but they came with problems when used with Pandoc's highlighter.The current available Pandoc themes
Espresso2 (dark)The colour pallette largely depends on what you're using it for. Are you mostly reviewing Python, Elm, Javascript, Ruby, any other programming language? You should be ok with most of the themes (you might want to give Zenburn a pass).
Trying to revise HTML, or other busy code samples? You might want to choose something with a more muted colour pallette (even perhaps, a light theme).
Other themes out in the wild
Want more? Help out!
Because Pandoc's Skylighting doesn't offer quite so many "tokens", meaning wrappers for code block segments (like
<span class="at">
) as other syntax highlighters, we have to approximate the colours and styles as best we can.It takes some time and patience!!
Footnotes
Not bad. The Python output looks nicer than the HTML though. Green and red is kind of ugly. However, there's a couple of Visual Studio Code plugins which are nicer (and similar) — Breeze Dark and Breeze. ↩
Looks like something from the 80s. Blue-heavy and ugly HTML. ↩
Nice and light. Simple. ↩
Again, nice and light. Slightly nicer colour pallette (purple etc) ↩
Very basic, but interesting use of underline in the HTML! ↩
Python looks nice with the orange, but HTML ... red and green? Ugh. Christmas. ↩
HTML feels a little busy, once again Python looks better. Fairly even colour pallette. ↩
Yellow is back in fashion! HTML a little hard on the eye. ↩
The text was updated successfully, but these errors were encountered: