{"action":"created","issue":{"url":"https://api.github.com/repos/slara/generator-reveal/issues/69","labels_url":"https://api.github.com/repos/slara/generator-reveal/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/slara/generator-reveal/issues/69/comments","events_url":"https://api.github.com/repos/slara/generator-reveal/issues/69/events","html_url":"https://github.com/slara/generator-reveal/issues/69","id":94450705,"number":69,"title":"Code Highlighting does not work","user":{"login":"rezpe","id":765458,"avatar_url":"https://avatars.githubusercontent.com/u/765458?v=3","gravatar_id":"","url":"https://api.github.com/users/rezpe","html_url":"https://github.com/rezpe","followers_url":"https://api.github.com/users/rezpe/followers","following_url":"https://api.github.com/users/rezpe/following{/other_user}","gists_url":"https://api.github.com/users/rezpe/gists{/gist_id}","starred_url":"https://api.github.com/users/rezpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rezpe/subscriptions","organizations_url":"https://api.github.com/users/rezpe/orgs","repos_url":"https://api.github.com/users/rezpe/repos","events_url":"https://api.github.com/users/rezpe/events{/privacy}","received_events_url":"https://api.github.com/users/rezpe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-11T07:56:55Z","updated_at":"2015-07-13T08:36:06Z","closed_at":null,"body":"I have seen that code highlighting does not work. If you create a new slide:\r\n\r\n    yo reveal:slide \"Example Slide\"\r\n\r\nand then you put this in the slide as a test:\r\n\r\n``` html\r\n<pre><code class=\"javascript\">\r\nvar a = 34\r\nvar b = function(){\r\nreturn \"great\"\r\n}\r\n</code></pre>\r\n\r\n<pre><code>\r\nSystem.out.println(\"What is this?\");\r\nString p = \"this is p\";\r\n</code></pre>\r\n```\r\n\r\nYou' ll see the code won't be highlighted.\r\n\r\nI believe the reason for this is that the code will be highlighted only if already present from the start in the DOM of index.htm. However, as the html slides are loaded one by one and not present in the DOM, the code won't be highlighted."},"comment":{"url":"https://api.github.com/repos/slara/generator-reveal/issues/comments/120850047","html_url":"https://github.com/slara/generator-reveal/issues/69#issuecomment-120850047","issue_url":"https://api.github.com/repos/slara/generator-reveal/issues/69","id":120850047,"user":{"login":"rezpe","id":765458,"avatar_url":"https://avatars.githubusercontent.com/u/765458?v=3","gravatar_id":"","url":"https://api.github.com/users/rezpe","html_url":"https://github.com/rezpe","followers_url":"https://api.github.com/users/rezpe/followers","following_url":"https://api.github.com/users/rezpe/following{/other_user}","gists_url":"https://api.github.com/users/rezpe/gists{/gist_id}","starred_url":"https://api.github.com/users/rezpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rezpe/subscriptions","organizations_url":"https://api.github.com/users/rezpe/orgs","repos_url":"https://api.github.com/users/rezpe/repos","events_url":"https://api.github.com/users/rezpe/events{/privacy}","received_events_url":"https://api.github.com/users/rezpe/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T08:36:06Z","updated_at":"2015-07-13T08:36:06Z","body":"Thanks Jan !! Let us know when to update the generator to have this :)\n\nOn Mon, Jul 13, 2015 at 9:53 AM Jan Raasch <notifications@github.com> wrote:\n\n> Hi @rezpe <https://github.com/rezpe>,\n>\n> thank you for the detailed description. You are right. You need to remove\n> the condition\n>\n> condition: function() { return !!document.querySelector( 'pre code' ); }\n>\n> from line 77 of your generated templates/_index.html file.\n>\n> I will update this to a more sane default so highlighting works out of the\n> box.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/slara/generator-reveal/issues/69#issuecomment-120841622>\n> .\n>\n"}}