DEV Community

ray_v101
ray_v101

Posted on

react-syntax-highlighter not beautifying code?

I am using the package "react-syntax-highlighter" to beautify code in react project, but somehow it still doesn't work as expected. I tried to search similar issues, but couldn't found any solution. Below {codeString} is generated by using blockly(by google). Thankyou for your time.

<SyntaxHighlighter language="javascript" style={docco} showLineNumbers>
      {codeString}
</SyntaxHighlighter>

enter image description here

Top comments (0)