Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Prism language support to code blocks #109

Closed
tansawit opened this issue Aug 27, 2020 · 2 comments · Fixed by tendermint/cosmos-ui#206
Closed

Adding Prism language support to code blocks #109

tansawit opened this issue Aug 27, 2020 · 2 comments · Fixed by tendermint/cosmos-ui#206

Comments

@tansawit
Copy link

Is there anyway to add additional languages to the Prism.js configuration being used by this theme? Specifically I'm looking to add support Solidity but can't figure out where to add the CSS and JS files or if something else need to be done

@lovincyrus
Copy link
Contributor

lovincyrus commented Aug 27, 2020

Hi @tansawit !

We're currently using a custom code-block component for this docs theme.

Additional languages must be imported manually to this file: https://github.com/tendermint/cosmos-ui/blob/develop/src/CodeBlock/CodeBlock.vue#L403

Prism.js supports Solidity (Ethereum) - solidity, sol.

I'll make sure to add the solidity support and release it in the upcoming version 👌

Related:

@tansawit
Copy link
Author

Thank you for such a quick response! Looking forward to using it in the new release 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants