32

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://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-yaml.js.

  • 3
    YAML is not on the supported list here – rene May 5 '15 at 13:35
  • 3
    @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? – Michael Sivolobov May 5 '15 at 13:41
  • 2
    Someone look at this, please, I'd appreciate it. – JesseTG Feb 9 '16 at 6:43
  • 3
    Two years later and no fix. – sorin Jan 26 '18 at 10:27
  • 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 at 8:25

You must log in to answer this question.

Browse other questions tagged .