woocommerce / FlexSlider

An awesome, fully responsive jQuery slider plugin
http://www.woocommerce.com/flexslider/
GNU General Public License v2.0
4.91k stars 1.69k forks source link

ReferenceError: SyntaxHighlighter is not defined #1694

Closed myndt closed 2 months ago

myndt commented 6 years ago

I am using next code:

where I am getting an error: ReferenceError: SyntaxHighlighter is not defined Whats wrong? Pls help...

thedappernisarg commented 6 years ago

Where did you define Syntax Highter function?

formatted code:

<script src="js/masterslider/jquery.easing.min.js"></script> 
<script src="js/masterslider/masterslider.min.js"></script> 
<script type="text/javascript"> 
  (function($) { "use strict"; 
       var slider = new MasterSlider();
           slider.setup('masterslider' , { 
             width: 1400, // slider standard width 
             height: 720, // slider standard height 
            space: 0, 
            speed: 45,
           fullwidth: true,
           loop: true, 
          preload: 0, 
          autoplay: true,
          view: "basic"
  }); // adds Arrows navigation control to the slider. slider.control('arrows'); slider.control('bullets'); 
  SyntaxHighlighter.all();      <--- issue with this line
 })(jQuery); 
</script>