Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable double click selection for SyntaxHighlighter

SyntaxHighlighter has a feature that allows code selection by double clicking. How can I disable this feature?

like image 495
Ryan Avatar asked Dec 27 '14 02:12

Ryan


1 Answers

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.

like image 184
Mas Avatar answered Dec 28 '22 06:12

Mas