-
Notifications
You must be signed in to change notification settings - Fork 70
Feature Request: Themes/color control #48
Comments
There’s no such feature, and I for my part won’t add it myself; I just don’t need it. I’m open for pull requests though. |
I think I’ll make mdcat use syntect themes for colouring and styling and add means to change the theme via env vars, like bat does it. This would also simplify code a bit. Would this work for you? |
Sure it would! |
Great. Note to self: Use appropriate markdown scopes for elements in rendered output; see Markdown syntax definition for a list of possible scopes. |
We’ll also at some point want to check COLORTERM for 24bit support and use ansi_colours to convert to 256 bit colours if the terminal doesn’t support true colours. Or we’ll just dump 24bit escape codes and hope that the terminal emulator copes, in whatever way 🤷♂️ |
Closing this, because I don't intend to do anything about this any time soon. Some basic infrastructure exists, but as things stand I'm happy with the default colours, and won't change anything here. Pull requests are welcome. |
Hi, I am very confused. The README shows different themes:
and it says you can use syntect code highlighting:
How do i select the general theme, and/or the code highlighting theme? In bat I use:
Do I have to select it in the source code and compile myself? Thanks. |
You can't. The screenshot shows different themes of the terminal emulator, IE, you'd select these in reg Wezterm config. mdcat does not support custom themes. |
@swsnr Thanks for the quick feedback. How about syntect code highlighting? I am also having a look at t https://github.com/Inlyne-Project/inlyne. |
mdcat uses a fixed set of colors for syntect highlighting. There is no custom theme support in mdcat. Really. 😉 |
Any way to change the color output? By default, my html comments are green, which for longer comments makes them quite hard to read in my theme (which might be partly due to my theme being at fault; nonetheless, being able to change it from green could improve readability under some circumstances)
Themes would be a more general solution, but an option that allows for more fine-grained control of colors could also be handy.
As a slight bonus, it would be neat if themeing would allow you to se text properties (e.g. disabling bold headers, making comments italic but the same color as regular text, etc).
The text was updated successfully, but these errors were encountered: