[英]Not Able to Run Highlight.js on Jsfiddle
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.