Snippet-Share
Snippet-Share copied to clipboard
Display logo of the programming language on the sidebar
Is your feature request related to a problem? Please describe.
On the sidebar I can't find out what language the snippet is in until I click on it.
Describe the solution you'd like
I can add all the icons to the the static folder:
{% static 'img/iconfolder/{{i.lang}}/{{i.lang}}.svg' %}
Describe alternatives you've considered
I can use something like https://devicon.dev/ to display the icon:
-
Flaw:: This won't work for ever language because the naming of the language from the models doesn't match the icon name
- Ex: models.py -> html != devicon -> html5
<i class="devicon-{{i.lang|lower}}-plain"> </i>
Additional context
How the alternative solution will look like:
I would kindly liked to be assigned for this! And can I do this for NWOC?
Thanks
That would be really helpful, go ahead @abdullah20401