Propose to add an ability to highlight the XML Schema Definitions (XSD)

https://github.com/magento/magento2/blob/2.1.6/lib/internal/Magento/Framework/ObjectManager/etc/config.xsd#L13-L17

2 Likes

I’m pretty sure syntax highlighter is this one:

https://highlightjs.org/

which a separate package with separate maintainers.

Anyway, their docs say use “html or xml” for XSD.

In Discourse, that would mean naming it on the code fence:

```xml
    <xs:complexType name="argumentType" abstract="true" mixed="false">
	<xs:complexContent>
	    <xs:extension base="argumentType" />
	</xs:complexContent>
    </xs:complexType>
```
    <xs:complexType name="argumentType" abstract="true" mixed="false">
        <xs:complexContent>
            <xs:extension base="argumentType" />
        </xs:complexContent>
    </xs:complexType>
7 Likes

It would be nice to make it working for the GitHub oneboxes.