WebAssembly / component-model

Repository for design and specification of the Component Model
Other
914 stars 78 forks source link

Add some language identifier to enable syntax highlighting #250

Closed sachaos closed 10 months ago

sachaos commented 10 months ago

I've added some language identifiers to code block for enabling syntax highlighting. :)

ricochet commented 10 months ago

Thank you for adding this!

We have a little bit of a chicken and egg problem where WIT is defined by this repo but the grammar is specified in bytecodealliance/vscode-wit. The linguist tool used by GitHub for code blocks rendering in md pulls the grammar from that repo. I think this can be OK so long as it is clear that there will be a lag between incoming changes to WIT syntax and when rendering for the new syntax is supported.

I noticed that this change does not add language identifiers for all code blocks, e.g. there are many more blocks in WIT.md.

lukewagner commented 10 months ago

lgtm, thanks!