pxi-gmbh / slidenotes

public repository for slidenotes.io, an agnostic web editor to turn text into responsive presentations
2 stars 0 forks source link

Code highlighting for inline code also #6

Open manikani opened 3 years ago

manikani commented 3 years ago

description

There is code highlighting in the presentations for code blocks, but not for the code that is shown inline.

proposed change

Show code highlighted in the code snippets in inline code tags as well.

caveats

Automatically detecting a coding language is impossible, if there is only one or two words in inline code. But that's what the inline code tag is for. And as the inline code is written inside the text in the editor as well, writing the options like "language" could make the the inline code tag too long to be still readable.

additional information

Maybe hiding the additional options like "language" in the tag is an option. You can show it again when the caret is inside the tag.