react-code-blocks icon indicating copy to clipboard operation
react-code-blocks copied to clipboard

React code blocks and code snippet components

Results 51 react-code-blocks issues
Sort by recently updated
recently updated
newest added

Problem arose from a fact that dependency react-syntax-highlighter doesn't accept 'cs' value as correct alias for csharp and therefore csharp highlight failed, correct alias is 'csharp'. I am not sure...

When we are using Bootstrap and react-code-blocks then the theme changes quite a bit The above image shows the dracula theme. Is there any way to fix that?

Would be great if we could pass in a custom component if the icon that's used by default doesn't suit the design. :)

enhancement
help wanted

Line numbers don't extend the entire code block when there is a `script` tag in a HTML code block. ![The_Sneaky_DOMContentLoaded](https://user-images.githubusercontent.com/16501201/175238611-45e68c5b-ec58-44ec-9adb-2e190cc1d3aa.jpg)

help wanted

## Problem statement Seems like `theme` is undefined. This is the error received when trying to use the component: ```jsx ```

bug
help wanted

Thank you for the great package, I have noticed that Prismjs has v 1.23 is marked as hight vulnerability, ![image](https://user-images.githubusercontent.com/10707009/132977711-b2be3f72-cc86-493f-ad04-90b89d2b8213.png) This was patched in v1.24 can the react-code-blocks be updated...

Hello! Love the component and especially the highlight feature. However, when using the highlight prop, text becomes not selectable. Works fine with the normal component: However, I cannot select any...

I used the below code. I tried both language csharp and cs. There is an error in the dev version but the style is still applied for the code block....

Passes the click event from the Copy button down to the onCopy prop, allowing someone to do something like ```tsx e.preventDefault()} ... /> ``` Or whatever other custom behavior that...

Fixed the link to the Carbon Component