microsoft / typespec

https://typespec.io/
MIT License
4.44k stars 208 forks source link

Reuse tmlanguage for html syntax highlighting #938

Open timotheeguerin opened 2 years ago

timotheeguerin commented 2 years ago

In the website https://github.com/microsoft/cadl/pull/935 using 11ty syntax highlighting extension that use PrismJS we need to specify another syntax definition that is working for PrismJS.

This is easily going to stay out of dat4. See if we can somehow use the tmlanguage to highlight cadl code block, either:

mario-guerra commented 6 months ago

@timotheeguerin is this issue still relevant or can we close it?

timotheeguerin commented 6 months ago

Yea it is, the way we have it today kinda works but this would be a good improvement