22

There has been some discussion about this before, but it seems we still don't have any code highlighting.

The , and tags would definitely benefit from some JS code highlighting. HTML and CSS highlighting would be beneficial for a lot of web related questions.

People may argue it isn't needed and won't greatly improve the site, but why wouldn't we want it? How does not having code highlighting improve the site?

Some questions that would benefit:



Update: Seems there is no objection to this and general agreement (based on votes at least), so can this happen? Pretty please?

If implementing this is harder than I assume it is (i.e just asking for it), or there is a reason we don't want this—could we have an explanation?

9

I'm turning this on for you now. Note, there will be instances where syntax highlighting can't infer that highlighting should be used by the tags in use, in which case the moderators can simply link a specific syntax to a specific tag (which can be done on the tag wiki page for that tag).

Hence, if you wanted javascript for the tag, you'd (as a mod) need to head to the tag wiki to map it.

It's enabled on the main and meta site, enjoy!

  • Thank you kindly @Tim – Cai Sep 27 '16 at 16:01
  • 1
    You're quite welcome! Apologies for this taking as long as it did. – Tim Post Sep 27 '16 at 16:23
  • No worries. I had nearly given up hope :-) – Cai Sep 27 '16 at 16:25
  • @cai was looking for OB1, as it was his only hope but needed darth vader to assist – DᴀʀᴛʜVᴀᴅᴇʀ Sep 27 '16 at 23:39
18

Yes please. I have requested this before but they said there was no need. But here is a few of my posts that would benefit, if @CAI's list is not enough. Basically we have entire tags of posts that could use this feature.

  • That was a few random posts I quickly found.. we could definitely find more if the list isn't long enough! – Cai Apr 18 '16 at 11:33
  • I would likely imagine if we had an actual list that may provide more of a reason to have code highlighting. – DᴀʀᴛʜVᴀᴅᴇʀ Aug 30 '16 at 17:28
7

I've asked the powers at the Galactic Empire to see if we can get an answer wether we can qualify for this or not. I'm in favor but I am biased as I love scripting questions.

  • 2
    All hail the dark lord – Cai Aug 30 '16 at 17:46
  • 1
    He's not my father, but I went ahead and did it anyway. – Tim Post Sep 27 '16 at 16:27

You must log in to answer this question.

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