{"action":"closed","issue":{"url":"https://api.github.com/repos/PrismJS/prism/issues/607","labels_url":"https://api.github.com/repos/PrismJS/prism/issues/607/labels{/name}","comments_url":"https://api.github.com/repos/PrismJS/prism/issues/607/comments","events_url":"https://api.github.com/repos/PrismJS/prism/issues/607/events","html_url":"https://github.com/PrismJS/prism/issues/607","id":90761606,"number":607,"title":"Language detection and the File Highlight plugin","user":{"login":"trombonehero","id":85833,"avatar_url":"https://avatars.githubusercontent.com/u/85833?v=3","gravatar_id":"","url":"https://api.github.com/users/trombonehero","html_url":"https://github.com/trombonehero","followers_url":"https://api.github.com/users/trombonehero/followers","following_url":"https://api.github.com/users/trombonehero/following{/other_user}","gists_url":"https://api.github.com/users/trombonehero/gists{/gist_id}","starred_url":"https://api.github.com/users/trombonehero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trombonehero/subscriptions","organizations_url":"https://api.github.com/users/trombonehero/orgs","repos_url":"https://api.github.com/users/trombonehero/repos","events_url":"https://api.github.com/users/trombonehero/events{/privacy}","received_events_url":"https://api.github.com/users/trombonehero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-24T19:13:29Z","updated_at":"2015-06-25T06:00:47Z","closed_at":"2015-06-25T06:00:47Z","body":"Thanks very much for Prism: it looks like it might be exactly what I need for including external code snippets on assignment pages for a course I'm teaching. Except for this one issue. :)\r\n\r\nWhen I try to fetch a C++ header file, I use something like this:\r\n\r\n```html\r\n<pre class=\"language-cpp\" data-src=\"some-header.h\"/>\r\n```\r\n\r\nAfter the File Highlight plugin runs, however, what I see in my Web Inspector is:\r\n\r\n```html\r\n<pre class=\"language-cpp data-src=\"some-header.h\"\r\n    <code class=\"language-h\">\r\n        \"/* ... */\"\r\n    </code>\r\n</pre>\r\n```\r\n\r\nSo, it looks like the language that I've specified on the `pre` isn't getting propagated to the dynamically-generated `code` element within it."}}