Make the code syntax more contrasted

hi

when I highlight something inline with the backticks to change it into code, the font and colour change is so minor it is hard to tell. Can this be improves to something a lot more contrasted like red font with a grey background.

i am some code - I am not code

Can you spot the difference?

Code in a block (wrapped in triple backticks, ```) is much more clearly a different thing:

I am code

And, I think that’s more likely when we really need clarity about what’s code.

I don’t like color being the only distinguishing characteristic of a thing as it is inaccessible to color-blind folks. Red, in particular is a bad choice, as it is the most likely to be invisible to color-blind readers (red-green color-blindness is the most common type, AFAIK). And, red usually means “something is wrong”.

But, maybe inline code ought to have a grey background, as it does in a block. I dunno…

We could stress it more, I think.

I am on about the inline code. not code blocks.

github has it right

Alright, sure! Better now?

1 Like

this is an example for you guys inline code example from virtual min

  • I like the grey background and the mono font it makes inline code usable again. thanks :smiley:
  • Question: I am sure the editor as a whole was using using a mono font and now it is roboto. Am I going MAD or was this changed recently?

Also, I think it all looks ok as is.

Yes, now it looks good. Mono shouldn’t be used for the textarea. I think it was a bug. I think I saw that too.

2 Likes

Discourse recently (a month or two back) made several changes to the editor, particularly the WYSIWYG (Rich Text) editor. I don’t know if typeface was among the changes in the Markdown editor. Even when I notice stuff like that, I immediately forget about it, as it mostly doesn’t matter to me. I do remember thinking things looked different at some point in the recent past. :man_shrugging:

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.