{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/2942","repository_url":"https://api.github.com/repos/gogits/gogs","labels_url":"https://api.github.com/repos/gogits/gogs/issues/2942/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/2942/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/2942/events","html_url":"https://github.com/gogits/gogs/pull/2942","id":146453995,"number":2942,"title":"Render the Code view on the server (minus syntax highlighting)","user":{"login":"psychomario","id":1041406,"avatar_url":"https://avatars.githubusercontent.com/u/1041406?v=3","gravatar_id":"","url":"https://api.github.com/users/psychomario","html_url":"https://github.com/psychomario","followers_url":"https://api.github.com/users/psychomario/followers","following_url":"https://api.github.com/users/psychomario/following{/other_user}","gists_url":"https://api.github.com/users/psychomario/gists{/gist_id}","starred_url":"https://api.github.com/users/psychomario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychomario/subscriptions","organizations_url":"https://api.github.com/users/psychomario/orgs","repos_url":"https://api.github.com/users/psychomario/repos","events_url":"https://api.github.com/users/psychomario/events{/privacy}","received_events_url":"https://api.github.com/users/psychomario/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/status/needs%20feedback","name":"status/needs feedback","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-04-06T22:33:54Z","updated_at":"2016-07-28T12:10:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gogits/gogs/pulls/2942","html_url":"https://github.com/gogits/gogs/pull/2942","diff_url":"https://github.com/gogits/gogs/pull/2942.diff","patch_url":"https://github.com/gogits/gogs/pull/2942.patch"},"body":"As discussed in #2914.\r\n\r\nThe Go is probably horrible, I've never actually written with it before, so I'm _very_ open to criticism.\r\n\r\nWRT numbers, the page doesn't seem to finish any quicker for me (still takes ~3 seconds to highlight), but everything visible bar syntax highlighting is finished much quicker, so the code doesn't jump to the right when the line numbers get done. So even though it's not faster, it feels it, and the highlighting just smoothly kicks in when it's done.\r\n\r\nNext step would probably be to move the syntax highlighting to the server side. This would be very nice for caching etc. I found [sourcegraph/syntaxhighlight](https://github.com/sourcegraph/syntaxhighlight), but I don't want to just add a random library to this. And I wouldn't know where to start if I was going to.\r\n\r\nPlease try this out, see what it feels like, and mercilessly criticize my Go."},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/235876888","html_url":"https://github.com/gogits/gogs/pull/2942#issuecomment-235876888","issue_url":"https://api.github.com/repos/gogits/gogs/issues/2942","id":235876888,"user":{"login":"psychomario","id":1041406,"avatar_url":"https://avatars.githubusercontent.com/u/1041406?v=3","gravatar_id":"","url":"https://api.github.com/users/psychomario","html_url":"https://github.com/psychomario","followers_url":"https://api.github.com/users/psychomario/followers","following_url":"https://api.github.com/users/psychomario/following{/other_user}","gists_url":"https://api.github.com/users/psychomario/gists{/gist_id}","starred_url":"https://api.github.com/users/psychomario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychomario/subscriptions","organizations_url":"https://api.github.com/users/psychomario/orgs","repos_url":"https://api.github.com/users/psychomario/repos","events_url":"https://api.github.com/users/psychomario/events{/privacy}","received_events_url":"https://api.github.com/users/psychomario/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T12:10:30Z","updated_at":"2016-07-28T12:10:30Z","body":"The `.go` bug was due to my code. Fixing it with the changes to string concatenation."}}
{"actor":{"display_login":"psychomario"}}