Prompt for <code tags>

Just a thought…
With the arrival of the new forum, I see a lot of posters have forgotten to use code tags…

Would it be possible to add a simple text prompt (in red!) across the top of the text window…
When a new user has less than xx posts, it says… “When posting code examples, please use the </> code tags to format your text.”

This can disappear after they reach a certain skill level.

There is a mechanism already in place to do this

During your first two posts, a message is shown on the post composer pane:

Welcome to Arduino Forum — thanks for starting a new conversation!

  • Does the title sound interesting if you read it out loud? Is it a good summary?
  • Who would be interested in this? Why does it matter? What kind of responses do you want?
  • Include commonly used words in your topic so others can find it. To group your topic with related topics, select a category (or tag).

For more, see our community guidelines. This panel will only appear for your first 2 posts.

This text, and that of the “community guidelines” are currently just the stock text provided by Discourse, but it is possible to customize them.

There is also a “Greetings!” PM a new user is directed to read after signing up. This contains an interactive tutorial with a bot where they learn about using the forum and demonstrate their understanding of that information:

The challenge of course is that newbies generally don’t know what they want, and worse still, they’re born without the ability to read.

Maybe the ‘post parser’ needs to look for a few keywords… #define, if (, Serial., etc, and make a guess that it’s actually code… then blast a big red prompt in the text… “USE CODE TAGS !

1 Like

Can I suggest a new pinned prompt at the top of new posts…

If you’re posting code - use code tags

Is it the same as your previous suggestion?

Not really, This is an explicit request to punch newbies/lazy posters in the face with a salient reminder. :clown_face:

Please explain what the specific differences are between the two proposals.

Also, does your proposal have something to do with the beta release of Arduino IDE 2.0.0?

1 Like

Oh poop.
My mind skipped a track… this was meant to be under the New Forum thread !
Sorry, mea culpa.

It came about, because the new forum allows posters to submit very long blocks of code ‘illegally’, which aren’t contained in a scrolling code window… just makes it harder scrolling through untidy posts, especially on mobiles.

What about adding a prompt right in the editing window?
Like so:

image

That could work…

Topics merged by request.

Here’s another feature Discourse offers along these lines:

I like the idea of a pinned prompt, but there’s always that factor of information overload.

If there was a function to reach out and slap offenders with a wet fish, I’d support that without question :rainbow::+1::clown_face::heavy_check_mark:

1 Like

We have a project in the pipeline with the author of this component

that could be useful to you.

Stay tuned

1 Like

Looks promising… can it still slap the offender with a wet fish ?
.