Mbed-TLS / mbedtls-docs

Version-independent documentation for Mbed TLS
Apache License 2.0
21 stars 28 forks source link

Style guide syntax highlighting #53

Closed davidhorstmann-arm closed 2 years ago

davidhorstmann-arm commented 2 years ago

Introduce proper C syntax highlighting in the style guide by telling sphinx what language the code blocks are in.

The effect is not overwhelmingly successful, but it is a big improvement on the default highlighting currently in place. For example, the first snippet in one section treats the first line of the macro definition as a comment, and the rest as unhighlighted text. Meanwhile the equivalent for this PR is much better.