NomicFoundation / hardhat-vscode

Solidity and Hardhat support for Visual Studio Code
https://hardhat.org
MIT License
163 stars 36 forks source link

Support for Solidity code snippets in Markdown #572

Open PaulRBerg opened 1 month ago

PaulRBerg commented 1 month ago

See context on Twitter: Is there any VSCode extension that can enable syntax highlighting for Solidity code blocks in Markdown?

It appears that Juan Blanco's extension offers support for Solidity code snippets in Markdown.

kanej commented 1 month ago

This seems to be done with an injection grammar: https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide#injection-grammars

We should see if there are any guidelines for the standard markdown extension.

michaeltomasik commented 3 weeks ago

Hey @kanej & @PaulRBerg just made a PR for this issue https://github.com/NomicFoundation/hardhat-vscode/pull/575