Allow icons in code snippet headers #1854
Closed
tmkn
started this conversation in
Feature Requests
Replies: 2 comments 1 reply
-
|
Thank you for the suggestion @tmkn — I think it could indeed be a nice feature. Starlight uses Expressive Code to render code blocks, so this might need a feature request upstream there. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
As this feature is now available as an Expressive Code plugin, I'm going to close this discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlightare you using?0.22.2
What is your idea?
When you give your code snippets a title, they will be displayed like this:

Imo it would be nice if one could specify an icon to be displayed before the title, like the tab component does.
Something like
Why is this feature necessary?
I think it would be a nice feature, especially if you work on a site that shows code for different languages, this would make it a little easier to identify which code is which.
Further, Starlight already comes with a lot of programming icons, why not use them for something like this :)
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions