简体   繁体   English

无法在Jsfiddle上运行Highlight.js

[英]Not Able to Run Highlight.js on Jsfiddle

Can you please take a look at This Demo and let me know why I am not able to run Highcharts.js on the jsfiddle 能否请您看一下这个演示 ,让我知道为什么我不能在jsfiddle上运行Highcharts.js

$(document).ready(function() {
  $('pre code').each(function(i, e) {
    hljs.highlightBlock(e)
  });

You are not closing the $(document).ready(function() { call. You can view the syntax error you are getting in the developer console of your browser. 您没有关闭$(document).ready(function() {调用。您可以在浏览器的开发人员控制台中查看语法错误。

Here is a fixed code block for you: 这是适合您的固定代码块:

$(document).ready(function() {
  $('pre code').each(function(i, e) {
    hljs.highlightBlock(e)
  });
 }); // this is the missing closing });

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM