48

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.

Example:

security:
    encoders:
            Symfony\Component\Security\Core\User\User:
                algorithm: bcrypt
                cost: 12
            BackOfficeBundle\Entity\Administrateur:
                 algorithm: bcrypt
            BackOfficeBundle\Entity\Collaborateur:
                 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.

6
  • 4
    YAML is not on the supported list here
    – rene
    Commented 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? Commented May 5, 2015 at 13:41
  • 4
    Someone look at this, please, I'd appreciate it.
    – JesseTG
    Commented Feb 9, 2016 at 6:43
  • 10
    Two years later and no fix.
    – sorin
    Commented 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
    Commented Mar 30, 2019 at 8:25
  • @sorin, after 5 years, it was already fixed 🙂 Commented Mar 4, 2020 at 4:59

1 Answer 1

12

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

2
  • Hooray! Hooray! Oh happy day! Commented Mar 4, 2020 at 4:56
  • Yaaay! (5 years later, but...yaaaay!) :) Commented Jun 16, 2020 at 1:03

You must log in to answer this question.

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