When I try to use the copy button, I get the error
Uncaught ReferenceError: styles is not defined
at HTMLDivElement.onclick ((index):6)
The problem is that chrome sees the styles as a variable and thinks that it is undefined. Here is a picture of what displays if I click to see the code.
The styles.code should be orange colored (string), but it is seen as a variable.
The fix should be escaping the dollar sign and the curly braces.
I could open a Pull Request and fix it.
@oct4vian I’m very sorry for getting back to you so late. You are more than welcome to submit a PR! Feel free to reopen this issue once you are ready.
I have this code snippet which I want to copy:
When I try to use the copy button, I get the error Uncaught ReferenceError: styles is not defined at HTMLDivElement.onclick ((index):6)
The problem is that chrome sees the styles as a variable and thinks that it is undefined. Here is a picture of what displays if I click to see the code.
The styles.code should be orange colored (string), but it is seen as a variable.
The fix should be escaping the dollar sign and the curly braces. I could open a Pull Request and fix it.
Thank you.