vadimdemedes / goodness-squad

4 stars 0 forks source link

Syntax highlighter component #11

Open vadimdemedes opened 3 years ago

vadimdemedes commented 3 years ago

It would be cool to have a standalone <SyntaxHighlight> component, which could accept some JS code as input and render a syntax highlighted version of it. For example:

<SyntaxHighlight code="const hello = 'world';"/>

See cli-highlight for inspiration.

vsashyn commented 3 years ago

Hey 🙂 I would like to tackle it.