Code Block Improvements

Is your feature request related to a problem? Please describe.

I have a many drafts, where I save basic commands in different programming languages.

I like the syntax highlighting so I used code snippets instead of inline code.

I loose quite some place on the page, because in every code snippet the programming language is shown.

Describe the solution you’d like

Some ideas:

    1. Why not hide the language dropdown, when my cursor isn’t in the code snippet. I think most people will know, what language they used or like in my case its stated in the title or somewhere else.
    1. Make Syntax highlighting available in “Inline code”.
    1. Move the language dropdown to the right of the first line, like this:

Then it doesnt need an extra line for something, that in most times will just get changed once.

Any of these will make more space usable.

3 Likes