{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/component-playground/issues/62","repository_url":"https://api.github.com/repos/FormidableLabs/component-playground","labels_url":"https://api.github.com/repos/FormidableLabs/component-playground/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/component-playground/issues/62/comments","events_url":"https://api.github.com/repos/FormidableLabs/component-playground/issues/62/events","html_url":"https://github.com/FormidableLabs/component-playground/pull/62","id":146405076,"number":62,"title":"Feature: add line selection option","user":{"login":"rgerstenberger","id":710017,"avatar_url":"https://avatars.githubusercontent.com/u/710017?v=3","gravatar_id":"","url":"https://api.github.com/users/rgerstenberger","html_url":"https://github.com/rgerstenberger","followers_url":"https://api.github.com/users/rgerstenberger/followers","following_url":"https://api.github.com/users/rgerstenberger/following{/other_user}","gists_url":"https://api.github.com/users/rgerstenberger/gists{/gist_id}","starred_url":"https://api.github.com/users/rgerstenberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgerstenberger/subscriptions","organizations_url":"https://api.github.com/users/rgerstenberger/orgs","repos_url":"https://api.github.com/users/rgerstenberger/repos","events_url":"https://api.github.com/users/rgerstenberger/events{/privacy}","received_events_url":"https://api.github.com/users/rgerstenberger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-06T19:06:45Z","updated_at":"2016-04-06T23:33:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FormidableLabs/component-playground/pulls/62","html_url":"https://github.com/FormidableLabs/component-playground/pull/62","diff_url":"https://github.com/FormidableLabs/component-playground/pull/62.diff","patch_url":"https://github.com/FormidableLabs/component-playground/pull/62.patch"},"body":"This adds the ability to pass in a `selection` to be highlighted. `selection={{startLine: 2, endLine: 4}}` both `endLine` and `startLine` are inclusive. To highlight a single line pass in the same line number for both start and end. Uses `CodeMirror-activeline-background` class under the hood to allow for theming.\r\n\r\n![screen shot 2016-04-06 at 12 06 16 pm](https://cloud.githubusercontent.com/assets/710017/14329396/febb0bee-fbef-11e5-803d-c838210d9e2c.png)\r\n"},"comment":{"url":"https://api.github.com/repos/FormidableLabs/component-playground/issues/comments/206620167","html_url":"https://github.com/FormidableLabs/component-playground/pull/62#issuecomment-206620167","issue_url":"https://api.github.com/repos/FormidableLabs/component-playground/issues/62","id":206620167,"user":{"login":"alexlande","id":808159,"avatar_url":"https://avatars.githubusercontent.com/u/808159?v=3","gravatar_id":"","url":"https://api.github.com/users/alexlande","html_url":"https://github.com/alexlande","followers_url":"https://api.github.com/users/alexlande/followers","following_url":"https://api.github.com/users/alexlande/following{/other_user}","gists_url":"https://api.github.com/users/alexlande/gists{/gist_id}","starred_url":"https://api.github.com/users/alexlande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexlande/subscriptions","organizations_url":"https://api.github.com/users/alexlande/orgs","repos_url":"https://api.github.com/users/alexlande/repos","events_url":"https://api.github.com/users/alexlande/events{/privacy}","received_events_url":"https://api.github.com/users/alexlande/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T23:33:36Z","updated_at":"2016-04-06T23:33:36Z","body":"Oh yeah, that would be a lot more flexible, I think. (And would make way more sense than an array of selection objects, haha)"}}