hackjutsu / Lepton

💻 Democratizing Snippet Management (macOS/Win/Linux)
https://hackjutsu.com/Lepton
MIT License
10.12k stars 475 forks source link

[Feature Request] Syntax Highlighting for .c and .h files (C programming language) #539

Open ajarmst opened 1 year ago

ajarmst commented 1 year ago

The more we know about your system and use case, the more easily and likely we can help.

Environment info

Description of the problem / feature request / question:

When displaying gists labelled as C source (.c) or C header (.h), no syntax highlighting is provided.

hackjutsu commented 1 year ago

Can you share a link of your gists where .c and .h are not syntax-highlighted? This is interesting because I just realized highlight.js which Lepton uses doesn't differentiate C and C++. https://highlightjs.org/static/demo/

SebDominguez commented 1 year ago

Same issue here. C files doesn't seems to be syntax highlighted for some reasons.

Capture d’écran 2023-06-02 à 12 43 27

But no issue on GitHub :

Capture d’écran 2023-06-02 à 12 43 46

Here's a link of the Gist: https://gist.github.com/SebDominguez/824a73b46025880c5b3e7348a613ac89