ic-design-system icon indicating copy to clipboard operation
ic-design-system copied to clipboard

Syntax highlighting in code preview

Open gd2910 opened this issue 1 year ago • 3 comments

Summary of the bug

Syntax highlighting is not present for 'tsx' files.

Add conditional language variable in the CodePreview code window component.

Javascript: (note function name & css styling):

Image

Typescript:

Image

gd2910 avatar Sep 30 '24 14:09 gd2910

moved back for triage as was "dev in progress" but no-one actively working on it

ad9242 avatar Oct 01 '25 13:10 ad9242

could look to see if this is resolved in a newer version of prism-react-renderer

ad9242 avatar Oct 07 '25 15:10 ad9242

Task here is to upgrade the library and see if any options to fix, if not move it back

MI6-255 avatar Oct 16 '25 09:10 MI6-255