crayon-syntax-highlighter icon indicating copy to clipboard operation
crayon-syntax-highlighter copied to clipboard

code comment messes with "expand code"

Open AndrePageot opened this issue 9 years ago • 0 comments

Hi there

I found a minor bug that screws up the expand code function in the tool menu at the top of each code snippet

if you use a double forward slash as you would in javascript to signify a comment line, this has an adverse affect

to replicate the issue try this code snippet

    //Enable jQuery to support payload
    jQuery.event.props.push('dataTransfer');
    //class wide storage variable for the 
    //last entered item while dragging
    var curEnterElementID;

AndrePageot avatar Nov 25 '16 14:11 AndrePageot