{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/guides/issues/77","labels_url":"https://api.github.com/repos/emberjs/guides/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/guides/issues/77/comments","events_url":"https://api.github.com/repos/emberjs/guides/issues/77/events","html_url":"https://github.com/emberjs/guides/issues/77","id":63546765,"number":77,"title":"Update Code Blocks to include additions, removals, and highlights ","user":{"login":"trek","id":9736,"avatar_url":"https://avatars.githubusercontent.com/u/9736?v=3","gravatar_id":"","url":"https://api.github.com/users/trek","html_url":"https://github.com/trek","followers_url":"https://api.github.com/users/trek/followers","following_url":"https://api.github.com/users/trek/following{/other_user}","gists_url":"https://api.github.com/users/trek/gists{/gist_id}","starred_url":"https://api.github.com/users/trek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trek/subscriptions","organizations_url":"https://api.github.com/users/trek/orgs","repos_url":"https://api.github.com/users/trek/repos","events_url":"https://api.github.com/users/trek/events{/privacy}","received_events_url":"https://api.github.com/users/trek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-22T15:56:16Z","updated_at":"2015-03-23T13:20:51Z","closed_at":null,"body":"A big challenge in writing writing tutorials where code mutates over time is accurately drawing the reader's attention to lines of code that have been added, removed, or need highlighting.\r\n\r\nThe react docs do an excellent job of with this:\r\n![getting started react 2015-03-22 10-52-51](https://cloud.githubusercontent.com/assets/9736/6770051/9f3b6244-d081-11e4-8eba-a5af78ddc7f9.png)\r\n\r\nThe raw markdown augments the fenced code metadata with a micro syntax to define highlights:\r\n\r\nHighlight one line:\r\n~~~\r\n```javascript{10}\r\n~~~\r\n\r\nHighlight multiple lines:\r\n~~~\r\n```javascript{3,10,55}\r\n~~~\r\n\r\nIn addition to this, we can expand the syntax to include classes for line additions and removals:\r\n\r\nLine 10 is removed:\r\n~~~\r\n```javascript{-10}\r\n~~~\r\n\r\nLine 10 is added:\r\n~~~\r\n```javascript{+10}\r\n~~~\r\n\r\nLine 10 is removed, line 15 is added, line 16 is highlighted:\r\n~~~\r\n```javascript{-10,+15,16}\r\n~~~"},"comment":{"url":"https://api.github.com/repos/emberjs/guides/issues/comments/84994818","html_url":"https://github.com/emberjs/guides/issues/77#issuecomment-84994818","issue_url":"https://api.github.com/repos/emberjs/guides/issues/77","id":84994818,"user":{"login":"trek","id":9736,"avatar_url":"https://avatars.githubusercontent.com/u/9736?v=3","gravatar_id":"","url":"https://api.github.com/users/trek","html_url":"https://github.com/trek","followers_url":"https://api.github.com/users/trek/followers","following_url":"https://api.github.com/users/trek/following{/other_user}","gists_url":"https://api.github.com/users/trek/gists{/gist_id}","starred_url":"https://api.github.com/users/trek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trek/subscriptions","organizations_url":"https://api.github.com/users/trek/orgs","repos_url":"https://api.github.com/users/trek/repos","events_url":"https://api.github.com/users/trek/events{/privacy}","received_events_url":"https://api.github.com/users/trek/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T13:20:51Z","updated_at":"2015-03-23T13:20:51Z","body":":+1: this is great"}}