SyntaxHighlighter has a feature that allows code selection by double clicking. How can I disable this feature?
You need to set the quick-code
setting to false.
// Disable double click feature
SyntaxHighlighter.defaults['quick-code'] = false;
// Initialize SyntaxHighlighter
SyntaxHighlighter.all();
Tested on version 3.0.83.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With