carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.8k stars 1.8k forks source link

[Feature Request]: Update CodeSnippet syntax highlighting example #16175

Open tay1orjones opened 5 months ago

tay1orjones commented 5 months ago

The problem

The example codepen we link to on the website showing an example of using PrismJS to add syntax highlighting to CodeSnippet is out of date. It uses v10 bx classes and just generally doesn't match the look and feel or experience that we're delivering on the website, in storybook, example stackblitz's, etc.

The solution

Make a new stackblitz example that demonstrates how to add PrismJS syntax highlighting to the CodeSnippet.

This will probably involve:

Examples

https://codepen.io/team/carbon/pen/eKMBLw

github-actions[bot] commented 5 months ago

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.

sstrubberg commented 2 months ago

Simple fix would be to update the codepen to v11