Code tags; who has been playing?

I noticed this morning that the text represented with code tags has changed. Smaller font, different colours.

For me, the new colour scheme is distracting. So the question is who has been playing? Discourse or Arduino?

I know that I have to adapt or die but in future I will probably just use text (```text) when I present code in a post.

Hi @sterretje.

It is Discourse:

1 Like

just noticed that too.

Not sure which one I prefer

default:


void setup() {
  Serial.begin(115200);
  Serial.println("It's distracting now !");
}

void loop() {}

And with ```text:


void setup() {
  Serial.begin(115200);
  Serial.println("It's less distracting but harder to read !");
}

void loop() {}

the color coding still adds value (but such a weird choice of color palette...)

The "can't leave well enough alone" children are at it again. When are they going to get around to line numbers?

5 Likes

Is it them that are messing about with the post times? The first post shown at the moment is 1 hour ago, despite refreshing things.

Just wish they would prioritize functionality and stability over visual glitz.

Maybe they should hire more "nix" experts and ship the kiddies back to Mickeysoft.

2 Likes

It seems less distracting when using the default (light) theme on the forum.

Yeah, I use light theme and didn't even notice any changes to the syntax coloration. I did immediately notice the font change after the update, but it doesn't give me a negative impression.

I think that Discourse is still playing. If I recall correctly the first iteration had bright yellow in it (dark theme) which I found painful. And in the topic that you linked there is a reply 14hrs ago (at the time of writing this) that inline code tags need to be fixed.

Because of my eyesight I use the dark theme and those colors are not great…

There are some best practices out there for handling colors in a mindful way when it comes to accessibility and usability.

Syntax highlighting helps, but its effectiveness depends on thoughtful color choices and consistent application.

Monokai pro Is known to have a great palette and approach to this for example.

(I’d be fine if I could select some color palette in my preferences )

These are the changes that have been made to the Discourse forum framework between the time of the code block restyling ("UX: Codeblocks experiment merge") and the version currently in use by Arduino Forum:

I don't see anything relevant there.

It is possible that there was an adjustment to the custom theme used by Arduino Forum (the theme is maintained by the Discourse team, not by Arduino), but if I am interpreting the forum's administrative logs correctly, the theme has not been updated recently.


In case anyone is interested in learning how to determine which version of Discourse is currently in use by Arduino Forum:

Click here

You can determine the Discourse version in use by Arduino Forum by looking at the source of any forum page. There you will see something like this:

    <meta name="generator" content="Discourse 3.4.0.beta3-dev - https://github.com/discourse/discourse version d71016522e8d9bb21c20312388271f8f0dd53069">

The d71016522e8d9bb21c20312388271f8f0dd53069 is the Git ref for the point in the Git revision history of the discourse/discourse repository. You will find that commit in the commit history of the repository.