{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/ex_doc/issues/185","labels_url":"https://api.github.com/repos/elixir-lang/ex_doc/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/ex_doc/issues/185/comments","events_url":"https://api.github.com/repos/elixir-lang/ex_doc/issues/185/events","html_url":"https://github.com/elixir-lang/ex_doc/pull/185","id":56113909,"number":185,"title":"update highlightjs to support more languages","user":{"login":"eksperimental","id":9133420,"avatar_url":"https://avatars.githubusercontent.com/u/9133420?v=3","gravatar_id":"","url":"https://api.github.com/users/eksperimental","html_url":"https://github.com/eksperimental","followers_url":"https://api.github.com/users/eksperimental/followers","following_url":"https://api.github.com/users/eksperimental/following{/other_user}","gists_url":"https://api.github.com/users/eksperimental/gists{/gist_id}","starred_url":"https://api.github.com/users/eksperimental/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eksperimental/subscriptions","organizations_url":"https://api.github.com/users/eksperimental/orgs","repos_url":"https://api.github.com/users/eksperimental/repos","events_url":"https://api.github.com/users/eksperimental/events{/privacy}","received_events_url":"https://api.github.com/users/eksperimental/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-01-31T05:46:38Z","updated_at":"2015-02-04T15:39:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/185","html_url":"https://github.com/elixir-lang/ex_doc/pull/185","diff_url":"https://github.com/elixir-lang/ex_doc/pull/185.diff","patch_url":"https://github.com/elixir-lang/ex_doc/pull/185.patch"},"body":"highlight.js has been updated\r\n* hightlight.js updated to latest version (v8.4)\r\n* Highlighting support for all these languages: Bash, CoffeeScript, CSS, Diff, Elixir, Erlang, Erlang-REPL, HTML/XML, HTTP, JavaScript, JSON, Markdown, SQL.\r\n* Header added to the hightligh.js library, showing the options were used to compile it, including license, copyright notice, and the date it was downloaded  (solving issue #173)\r\n*  highlighting autodetect has been disabled\r\n* any language in the code blocks can be defined, even though the ones not supported, but when no language is specified, the default is elixir (this solves the issue why this previous PR had to be reverted:  https://github.com/elixir-lang/ex_doc/pull/182#issuecomment-70820109 )\r\n* IEX code is detected and a class is added ( solving https://github.com/elixir-lang/ex_doc/issues/172#issuecomment-67610083 )\r\n* Dependencies have been updated\r\n\r\nPending Improvements:\r\n1. Elixir markup have some issues, It needs to be reported to the maintainers. I have used [this test file](https://bitbucket.org/birkenfeld/pygments-main/src/tip/tests/examplefiles/example_elixir.ex)\r\n2. We are lacking Iex support, if anybody wants to tackle down on it. [There is already support for it in pygments](https://bitbucket.org/birkenfeld/pygments-main/commits/45af979829ad0bad180224ceb6d30f13d0d2bc6e), I'm not sure if that helps when porting it to highlight.js\r\n3. Support for markdown is very poor and there is not much highlighting\r\n4. I have added to the header of the file html files the languages supported, and their alias, just because I didn't know where to put it in the ex_doc documentation, so if anybody knows a good place, we can add it, and provide examples of how to include code from other languages.\r\n```\r\n    // Languages supported and their aliases\r\n    bash, sh, zsh,\r\n    coffeescript, coffee, cson, iced,\r\n    css,\r\n    diff, patch,\r\n    elixir, iex,\r\n    erlang, erl,\r\n    erlang-repl,\r\n    http,\r\n    javascript, js,\r\n    json,\r\n    markdown, md, mkdown, mkd,\r\n    sql,\r\n    xml, html, xhtml, rss, atom, xsl, plist,\r\n```"},"comment":{"url":"https://api.github.com/repos/elixir-lang/ex_doc/issues/comments/72876777","html_url":"https://github.com/elixir-lang/ex_doc/pull/185#issuecomment-72876777","issue_url":"https://api.github.com/repos/elixir-lang/ex_doc/issues/185","id":72876777,"user":{"login":"eksperimental","id":9133420,"avatar_url":"https://avatars.githubusercontent.com/u/9133420?v=3","gravatar_id":"","url":"https://api.github.com/users/eksperimental","html_url":"https://github.com/eksperimental","followers_url":"https://api.github.com/users/eksperimental/followers","following_url":"https://api.github.com/users/eksperimental/following{/other_user}","gists_url":"https://api.github.com/users/eksperimental/gists{/gist_id}","starred_url":"https://api.github.com/users/eksperimental/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eksperimental/subscriptions","organizations_url":"https://api.github.com/users/eksperimental/orgs","repos_url":"https://api.github.com/users/eksperimental/repos","events_url":"https://api.github.com/users/eksperimental/events{/privacy}","received_events_url":"https://api.github.com/users/eksperimental/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T15:39:31Z","updated_at":"2015-02-04T15:39:31Z","body":"there you go"}}