When I comment a code-block with <!-- language: lang-yaml --> the page is generated with the right css-class lang-yaml but it has no effect. There is no syntax highlighting for YAML.


                algorithm: bcrypt
                cost: 12
                 algorithm: bcrypt
                 algorithm: bcrypt

As described here YAML is in the supported list (as an extension). Maybe extensions aren't loaded by default?

But if you look here YAML is not in the supported list. YAML is already supported by Google Prettify: https://github.com/google/code-prettify/blob/master/src/lang-yaml.js.

  • 4
    YAML is not on the supported list here
    – rene
    May 5, 2015 at 13:35
  • 5
    @rene Ok. "If a language that could be applied to a tag is already on the list, please raise a feature request here on Meta to have it deployed on the network." Now I need to modify my question so it would be more like feature-request than bug or I can leave it as is? May 5, 2015 at 13:41
  • 4
    Someone look at this, please, I'd appreciate it.
    – JesseTG
    Feb 9, 2016 at 6:43
  • 10
    Two years later and no fix.
    – sorin
    Jan 26, 2018 at 10:27
  • 5
    Could we please have some decision on this? Either fix it/schedule for fixing, or tell us it's a won't fix.
    – BartoszKP
    Mar 30, 2019 at 8:25
  • @sorin, after 5 years, it was already fixed 🙂 Mar 4, 2020 at 4:59

1 Answer 1


I have added the syntax highlighting logic for YAML. It is now live (as you can see above).


You must log in to answer this question.

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