23

Please upvote this question and with enough votes, code syntax highlighting will be enabled on the site.


I know other stack exchanges (and stack overflow) have syntax highlighting. Is that not available due to beta or a setting that needs to be enabled?

I have tried doing triple backticks followed by the language name (which I know works in other exchanges) but it does not render highlights.

Example: What's the difference between Anchor Accounts and account attributes?

I had a quick google around and this is the only remotely relevant thing I found.

7
  • I am pretty sure beta restrictions are a thing throughout the entire Stack Exchange galaxy
    – MmmHmm
    Jul 22, 2022 at 11:26
  • per solana.stackexchange.com/help/whats-beta "All beta sites have the same temporary placeholder design"
    – MmmHmm
    Jul 22, 2022 at 13:17
  • 4
    It's by default turned off, but by posting on this meta, receiving enough upvotes, and having a mod add the [status-review] tag, it can be enabled: meta.stackexchange.com/a/296833/282094 - it's correct to use your backticks and specify a language, once it's enabled, if it ever is, then the post won't need to be edited again.
    – Rob
    Jul 22, 2022 at 16:42
  • @Rob's link leads to two good examples of how to use a Meta forum to make feature requests: here, and here.
    – MmmHmm
    Jul 22, 2022 at 19:41
  • 1
    Thanks. I updated the question to illicit votes. We'll see how it goes.
    – sohrab
    Jul 23, 2022 at 0:45
  • 2
    @sohrab "elicit" - evoke, draw out; "illicit" - naughty ;^)
    – MmmHmm
    Jul 23, 2022 at 0:51
  • 2
    I forgot to ask: how many naughty votes are enough votes to get this thing turned on?
    – sohrab
    Aug 4, 2022 at 13:46

1 Answer 1

0

Apologies for the long turnaround time here. Syntax highlighting is now enabled for Solana

2
  • Thanks for this. I don't see it happening on the existing posts but I see that if I edit and save a post it does enable. Does it take some time to roll out to existing posts or does it just apply to new posts (and edited posts)?
    – sohrab
    Apr 18 at 2:32
  • @sohrab I am not entirely sure, I will have to ask around to find out.
    – SpencerG StaffMod
    Apr 18 at 13:24

You must log in to answer this question.

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