d0c-s4vage / lookatme

An interactive, terminal-based markdown presenter
https://lookatme.readthedocs.io/en/latest/
MIT License
2.06k stars 59 forks source link

change colour of code block #176

Closed gennaro-tedesco closed 1 year ago

gennaro-tedesco commented 1 year ago

Thank you for this awesome program!

More than a bug report a request for info/documentation: is it possible to change background colour of the default code blocks (and likewise, inline)? I have not been able to find the corresponding entry in the YAML syntax (therefore I wonder if possible at all).

d0c-s4vage commented 1 year ago

Hi! You can't directly change the background of the code block, but you can change the syntax highlighting color scheme with either the command-line --style parameter, or the YAML style: key.

d0c-s4vage commented 1 year ago

E.g.

lookatme --style emacs your_slides.md

Or

---
styles:
  style: emacs
---

```python
# a python codeblock
```
gennaro-tedesco commented 1 year ago

I will do so, thank you!