13
$\begingroup$

I was drafting an answer to a question, and there was significant chunks of code. Some HTML and others CSS. I noticed that none of it was being highlighted as I was expecting. I even fleshed out an HTML snippet to make it a complete 'page' from <!DOCTYPE> to </html>, and still nothing.

Using the explicit controls from the Meta SE answer, I tried again. Still nothing.

I experimented with the same code on SO and it all worked as intended.

Turns out that it has to be enabled individually for each site. That only happens when requested through meta. Therefore, as a long-term user of CSEducators, I'd like to ask for syntax highlighting to be enabled for our site.

Syntax highlighting would be helpful in larger chunks of code. Some examples currently on-site are:

  • Multiple answers to Interesting Programming Exercises to Teach Inheritance?
  • Is it bad to force my students not to return early? has two answers with large-ish code blocks
  • What should be included in a best practices C course? also has two answers with chunks of code
  • answer to Once implicit/inferred typing is introduced, how can I impress upon students the importance of not abusing it?
  • answer to How Effective Is “Rosetta Code” as a Teaching Technique?
  • answer to A meaningful exercise that requires using a destructor
  • answer to My teacher said that java is pass-by-reference when the type is not a primitive
  • answer to How to avoid misconceptions about while loop when using null loop
  • answer to Explaining to students why to use double instead of float (unless there's a very good reason)
$\endgroup$
1
$\begingroup$

This simply needs to be done. Other StackExchange areas have it. What is the obstacle?

$\endgroup$
  • $\begingroup$ To my understanding, it is not automatic for any site. Rather the site must request it, with a sufficiently positive vote on a meta question. The mods then present the case to the "appropriate channels" and with the votes, and reasons, from the meta post, they then enable it. I do believe we've met the requirements, and just have to await the activation. $\endgroup$ – Gypsy Spellweaver Aug 3 '18 at 22:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .