{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8425","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8425/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8425/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8425/events","html_url":"https://github.com/gitlabhq/gitlabhq/pull/8425","id":50846845,"number":8425,"title":"Replace highlight.js with rouge-fork rugments","user":{"login":"rumpelsepp","id":1961699,"avatar_url":"https://avatars.githubusercontent.com/u/1961699?v=3","gravatar_id":"","url":"https://api.github.com/users/rumpelsepp","html_url":"https://github.com/rumpelsepp","followers_url":"https://api.github.com/users/rumpelsepp/followers","following_url":"https://api.github.com/users/rumpelsepp/following{/other_user}","gists_url":"https://api.github.com/users/rumpelsepp/gists{/gist_id}","starred_url":"https://api.github.com/users/rumpelsepp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rumpelsepp/subscriptions","organizations_url":"https://api.github.com/users/rumpelsepp/orgs","repos_url":"https://api.github.com/users/rumpelsepp/repos","events_url":"https://api.github.com/users/rumpelsepp/events{/privacy}","received_events_url":"https://api.github.com/users/rumpelsepp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/labels/Ready%20for%20Merge","name":"Ready for Merge","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"randx","id":305940,"avatar_url":"https://avatars.githubusercontent.com/u/305940?v=3","gravatar_id":"","url":"https://api.github.com/users/randx","html_url":"https://github.com/randx","followers_url":"https://api.github.com/users/randx/followers","following_url":"https://api.github.com/users/randx/following{/other_user}","gists_url":"https://api.github.com/users/randx/gists{/gist_id}","starred_url":"https://api.github.com/users/randx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randx/subscriptions","organizations_url":"https://api.github.com/users/randx/orgs","repos_url":"https://api.github.com/users/randx/repos","events_url":"https://api.github.com/users/randx/events{/privacy}","received_events_url":"https://api.github.com/users/randx/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/milestones/30","html_url":"https://github.com/gitlabhq/gitlabhq/milestones/7.8","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/milestones/30/labels","id":905519,"number":30,"title":"7.8","description":"","creator":{"login":"jvanbaarsen","id":1362793,"avatar_url":"https://avatars.githubusercontent.com/u/1362793?v=3","gravatar_id":"","url":"https://api.github.com/users/jvanbaarsen","html_url":"https://github.com/jvanbaarsen","followers_url":"https://api.github.com/users/jvanbaarsen/followers","following_url":"https://api.github.com/users/jvanbaarsen/following{/other_user}","gists_url":"https://api.github.com/users/jvanbaarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jvanbaarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvanbaarsen/subscriptions","organizations_url":"https://api.github.com/users/jvanbaarsen/orgs","repos_url":"https://api.github.com/users/jvanbaarsen/repos","events_url":"https://api.github.com/users/jvanbaarsen/events{/privacy}","received_events_url":"https://api.github.com/users/jvanbaarsen/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":38,"state":"closed","created_at":"2014-12-16T12:46:25Z","updated_at":"2015-03-09T22:11:52Z","due_on":"2015-02-21T23:00:00Z","closed_at":"2015-03-09T22:11:52Z"},"comments":44,"created_at":"2014-12-03T14:52:30Z","updated_at":"2015-04-09T13:34:13Z","closed_at":"2015-01-15T22:28:24Z","pull_request":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8425","html_url":"https://github.com/gitlabhq/gitlabhq/pull/8425","diff_url":"https://github.com/gitlabhq/gitlabhq/pull/8425.diff","patch_url":"https://github.com/gitlabhq/gitlabhq/pull/8425.patch"},"body":"A few day ago I have opened this issue here #8404. I am neither a ruby nor a rails pro but I have managed to create some kind of demo. It is not ready for merge. You could consider it as a proof of concept and for comparing the results between `highlight.js` and [`rouge`](https://github.com/jneen/rouge)\r\n\r\n## Again some explanations\r\n\r\n* highlight.js is really buggy in getting the correct synthax. The solution is guessing the language with taking  the filename, shebang, ... into consideration.\r\n* `pygments` handles this very well but it is a python library\r\n* `rouge` is a highlighter in ruby which is compatible to pygments themes. It is able to do this kind of guessing, too.\r\n* f4b9a65c05f24c3558687c98b5163b465dc46314 reactivates highlight.js language autodetection which is buggy by design.\r\n* look here for some more discussion: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/232#note_622601, #8404\r\n\r\n## TODO\r\n\r\n- [x] Blob\r\n- [x] Blame\r\n- [x] Wiki\r\n- [x] Code Blocks \r\n- [x] Snippets\r\n- [x] Themes - find a better white and dark theme!\r\n- [x] Check color definitions in themes again\r\n- [x] Code Cleanup\r\n- [x] Line number links\r\n- [x] Line number colors\r\n- [x] add new theme screenshots \r\n\r\n## Demo\r\n\r\nCheckout my private Gitlab instance. I have included this pull request there already:\r\nhttps://gitlab.sevenbyte.org/u/stefan\r\n\r\nInstructions for changing the theme without an account are here: https://github.com/gitlabhq/gitlabhq/pull/8425#issuecomment-67137852"},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/91232571","html_url":"https://github.com/gitlabhq/gitlabhq/pull/8425#issuecomment-91232571","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8425","id":91232571,"user":{"login":"dannykopping","id":373762,"avatar_url":"https://avatars.githubusercontent.com/u/373762?v=3","gravatar_id":"","url":"https://api.github.com/users/dannykopping","html_url":"https://github.com/dannykopping","followers_url":"https://api.github.com/users/dannykopping/followers","following_url":"https://api.github.com/users/dannykopping/following{/other_user}","gists_url":"https://api.github.com/users/dannykopping/gists{/gist_id}","starred_url":"https://api.github.com/users/dannykopping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannykopping/subscriptions","organizations_url":"https://api.github.com/users/dannykopping/orgs","repos_url":"https://api.github.com/users/dannykopping/repos","events_url":"https://api.github.com/users/dannykopping/events{/privacy}","received_events_url":"https://api.github.com/users/dannykopping/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T13:34:13Z","updated_at":"2015-04-09T13:34:13Z","body":"Any news on this?"}}