0

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

$(document).ready(function() {
  $('pre code').each(function(i, e) {
    hljs.highlightBlock(e)
  });
Behseini
  • 6,066
  • 23
  • 78
  • 125

1 Answers1

1

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.

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 });
tomato
  • 93
  • 1
  • 6
  • Thanks tomato, but this is still not working https://jsfiddle.net/Behseini/nzubL391/1/ – Behseini Feb 14 '17 at 20:08
  • I'm able to see a highlight box around the content, what functionality are you looking for or missing? – tomato Feb 14 '17 at 20:17
  • I can see the box too but how about syntax highlighting? Looks like page is rendering the tags instead of displaying the code – Behseini Feb 14 '17 at 20:21
  • In order to display the code you will have to escape the < > characters. Here is another stack overflow page with more explanation: http://stackoverflow.com/questions/2820453/display-html-code-in-html – tomato Feb 14 '17 at 20:27