Snippet-Share icon indicating copy to clipboard operation
Snippet-Share copied to clipboard

Display logo of the programming language on the sidebar

Open abdullah20401 opened this issue 4 years ago • 2 comments

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">&nbsp; &nbsp;</i>

Additional context How the alternative solution will look like: image

abdullah20401 avatar Dec 29 '20 17:12 abdullah20401

I would kindly liked to be assigned for this! And can I do this for NWOC?

Thanks

abdullah20401 avatar Dec 29 '20 17:12 abdullah20401

That would be really helpful, go ahead @abdullah20401

PragatiVerma18 avatar Jan 05 '21 13:01 PragatiVerma18