{"action":"closed","number":58,"pull_request":{"url":"https://api.github.com/repos/tsenart/sight/pulls/58","id":30476996,"html_url":"https://github.com/tsenart/sight/pull/58","diff_url":"https://github.com/tsenart/sight/pull/58.diff","patch_url":"https://github.com/tsenart/sight/pull/58.patch","issue_url":"https://api.github.com/repos/tsenart/sight/issues/58","number":58,"state":"closed","locked":false,"title":"Workaround local html/xml viewing (issue #57)","user":{"login":"cjwelborn","id":3335984,"avatar_url":"https://avatars.githubusercontent.com/u/3335984?v=3","gravatar_id":"","url":"https://api.github.com/users/cjwelborn","html_url":"https://github.com/cjwelborn","followers_url":"https://api.github.com/users/cjwelborn/followers","following_url":"https://api.github.com/users/cjwelborn/following{/other_user}","gists_url":"https://api.github.com/users/cjwelborn/gists{/gist_id}","starred_url":"https://api.github.com/users/cjwelborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjwelborn/subscriptions","organizations_url":"https://api.github.com/users/cjwelborn/orgs","repos_url":"https://api.github.com/users/cjwelborn/repos","events_url":"https://api.github.com/users/cjwelborn/events{/privacy}","received_events_url":"https://api.github.com/users/cjwelborn/received_events","type":"User","site_admin":false},"body":"This is what I came up with for viewing local html/xml files without Sight interfering. I see that html and xml are already filtered by `contentType`. When viewing a local file `contentType` is `null`, and the `language` is `html` or `xml`. I added a check for that and now Sight will not highlight xml and html when `contentType` is `null`.","created_at":"2015-03-04T15:53:56Z","updated_at":"2015-03-05T16:15:01Z","closed_at":"2015-03-05T16:15:01Z","merged_at":null,"merge_commit_sha":"c8449dbb2b1b86934f9854835c88016d912f391a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tsenart/sight/pulls/58/commits","review_comments_url":"https://api.github.com/repos/tsenart/sight/pulls/58/comments","review_comment_url":"https://api.github.com/repos/tsenart/sight/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tsenart/sight/issues/58/comments","statuses_url":"https://api.github.com/repos/tsenart/sight/statuses/1f3ea7ca4fa1662b8f773688219bae7b402017b1","head":{"label":"cjwelborn:issue57","ref":"issue57","sha":"1f3ea7ca4fa1662b8f773688219bae7b402017b1","user":{"login":"cjwelborn","id":3335984,"avatar_url":"https://avatars.githubusercontent.com/u/3335984?v=3","gravatar_id":"","url":"https://api.github.com/users/cjwelborn","html_url":"https://github.com/cjwelborn","followers_url":"https://api.github.com/users/cjwelborn/followers","following_url":"https://api.github.com/users/cjwelborn/following{/other_user}","gists_url":"https://api.github.com/users/cjwelborn/gists{/gist_id}","starred_url":"https://api.github.com/users/cjwelborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjwelborn/subscriptions","organizations_url":"https://api.github.com/users/cjwelborn/orgs","repos_url":"https://api.github.com/users/cjwelborn/repos","events_url":"https://api.github.com/users/cjwelborn/events{/privacy}","received_events_url":"https://api.github.com/users/cjwelborn/received_events","type":"User","site_admin":false},"repo":{"id":31660140,"name":"sight","full_name":"cjwelborn/sight","owner":{"login":"cjwelborn","id":3335984,"avatar_url":"https://avatars.githubusercontent.com/u/3335984?v=3","gravatar_id":"","url":"https://api.github.com/users/cjwelborn","html_url":"https://github.com/cjwelborn","followers_url":"https://api.github.com/users/cjwelborn/followers","following_url":"https://api.github.com/users/cjwelborn/following{/other_user}","gists_url":"https://api.github.com/users/cjwelborn/gists{/gist_id}","starred_url":"https://api.github.com/users/cjwelborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjwelborn/subscriptions","organizations_url":"https://api.github.com/users/cjwelborn/orgs","repos_url":"https://api.github.com/users/cjwelborn/repos","events_url":"https://api.github.com/users/cjwelborn/events{/privacy}","received_events_url":"https://api.github.com/users/cjwelborn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cjwelborn/sight","description":"The Syntax Highlighter for Chrome","fork":true,"url":"https://api.github.com/repos/cjwelborn/sight","forks_url":"https://api.github.com/repos/cjwelborn/sight/forks","keys_url":"https://api.github.com/repos/cjwelborn/sight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cjwelborn/sight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cjwelborn/sight/teams","hooks_url":"https://api.github.com/repos/cjwelborn/sight/hooks","issue_events_url":"https://api.github.com/repos/cjwelborn/sight/issues/events{/number}","events_url":"https://api.github.com/repos/cjwelborn/sight/events","assignees_url":"https://api.github.com/repos/cjwelborn/sight/assignees{/user}","branches_url":"https://api.github.com/repos/cjwelborn/sight/branches{/branch}","tags_url":"https://api.github.com/repos/cjwelborn/sight/tags","blobs_url":"https://api.github.com/repos/cjwelborn/sight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cjwelborn/sight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cjwelborn/sight/git/refs{/sha}","trees_url":"https://api.github.com/repos/cjwelborn/sight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cjwelborn/sight/statuses/{sha}","languages_url":"https://api.github.com/repos/cjwelborn/sight/languages","stargazers_url":"https://api.github.com/repos/cjwelborn/sight/stargazers","contributors_url":"https://api.github.com/repos/cjwelborn/sight/contributors","subscribers_url":"https://api.github.com/repos/cjwelborn/sight/subscribers","subscription_url":"https://api.github.com/repos/cjwelborn/sight/subscription","commits_url":"https://api.github.com/repos/cjwelborn/sight/commits{/sha}","git_commits_url":"https://api.github.com/repos/cjwelborn/sight/git/commits{/sha}","comments_url":"https://api.github.com/repos/cjwelborn/sight/comments{/number}","issue_comment_url":"https://api.github.com/repos/cjwelborn/sight/issues/comments{/number}","contents_url":"https://api.github.com/repos/cjwelborn/sight/contents/{+path}","compare_url":"https://api.github.com/repos/cjwelborn/sight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cjwelborn/sight/merges","archive_url":"https://api.github.com/repos/cjwelborn/sight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cjwelborn/sight/downloads","issues_url":"https://api.github.com/repos/cjwelborn/sight/issues{/number}","pulls_url":"https://api.github.com/repos/cjwelborn/sight/pulls{/number}","milestones_url":"https://api.github.com/repos/cjwelborn/sight/milestones{/number}","notifications_url":"https://api.github.com/repos/cjwelborn/sight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cjwelborn/sight/labels{/name}","releases_url":"https://api.github.com/repos/cjwelborn/sight/releases{/id}","created_at":"2015-03-04T14:10:03Z","updated_at":"2015-03-04T14:10:03Z","pushed_at":"2015-03-04T15:40:22Z","git_url":"git://github.com/cjwelborn/sight.git","ssh_url":"git@github.com:cjwelborn/sight.git","clone_url":"https://github.com/cjwelborn/sight.git","svn_url":"https://github.com/cjwelborn/sight","homepage":"chrome.google.com/extensions/detail/epmaefhielclhlnmjofcdapbeepkmggh","size":3772,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tsenart:master","ref":"master","sha":"2bfb40850dfa66a94be2c15ecb283bfb211c526c","user":{"login":"tsenart","id":67471,"avatar_url":"https://avatars.githubusercontent.com/u/67471?v=3","gravatar_id":"","url":"https://api.github.com/users/tsenart","html_url":"https://github.com/tsenart","followers_url":"https://api.github.com/users/tsenart/followers","following_url":"https://api.github.com/users/tsenart/following{/other_user}","gists_url":"https://api.github.com/users/tsenart/gists{/gist_id}","starred_url":"https://api.github.com/users/tsenart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsenart/subscriptions","organizations_url":"https://api.github.com/users/tsenart/orgs","repos_url":"https://api.github.com/users/tsenart/repos","events_url":"https://api.github.com/users/tsenart/events{/privacy}","received_events_url":"https://api.github.com/users/tsenart/received_events","type":"User","site_admin":false},"repo":{"id":959599,"name":"sight","full_name":"tsenart/sight","owner":{"login":"tsenart","id":67471,"avatar_url":"https://avatars.githubusercontent.com/u/67471?v=3","gravatar_id":"","url":"https://api.github.com/users/tsenart","html_url":"https://github.com/tsenart","followers_url":"https://api.github.com/users/tsenart/followers","following_url":"https://api.github.com/users/tsenart/following{/other_user}","gists_url":"https://api.github.com/users/tsenart/gists{/gist_id}","starred_url":"https://api.github.com/users/tsenart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsenart/subscriptions","organizations_url":"https://api.github.com/users/tsenart/orgs","repos_url":"https://api.github.com/users/tsenart/repos","events_url":"https://api.github.com/users/tsenart/events{/privacy}","received_events_url":"https://api.github.com/users/tsenart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tsenart/sight","description":"The Syntax Highlighter for Chrome","fork":false,"url":"https://api.github.com/repos/tsenart/sight","forks_url":"https://api.github.com/repos/tsenart/sight/forks","keys_url":"https://api.github.com/repos/tsenart/sight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tsenart/sight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tsenart/sight/teams","hooks_url":"https://api.github.com/repos/tsenart/sight/hooks","issue_events_url":"https://api.github.com/repos/tsenart/sight/issues/events{/number}","events_url":"https://api.github.com/repos/tsenart/sight/events","assignees_url":"https://api.github.com/repos/tsenart/sight/assignees{/user}","branches_url":"https://api.github.com/repos/tsenart/sight/branches{/branch}","tags_url":"https://api.github.com/repos/tsenart/sight/tags","blobs_url":"https://api.github.com/repos/tsenart/sight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tsenart/sight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tsenart/sight/git/refs{/sha}","trees_url":"https://api.github.com/repos/tsenart/sight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tsenart/sight/statuses/{sha}","languages_url":"https://api.github.com/repos/tsenart/sight/languages","stargazers_url":"https://api.github.com/repos/tsenart/sight/stargazers","contributors_url":"https://api.github.com/repos/tsenart/sight/contributors","subscribers_url":"https://api.github.com/repos/tsenart/sight/subscribers","subscription_url":"https://api.github.com/repos/tsenart/sight/subscription","commits_url":"https://api.github.com/repos/tsenart/sight/commits{/sha}","git_commits_url":"https://api.github.com/repos/tsenart/sight/git/commits{/sha}","comments_url":"https://api.github.com/repos/tsenart/sight/comments{/number}","issue_comment_url":"https://api.github.com/repos/tsenart/sight/issues/comments{/number}","contents_url":"https://api.github.com/repos/tsenart/sight/contents/{+path}","compare_url":"https://api.github.com/repos/tsenart/sight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tsenart/sight/merges","archive_url":"https://api.github.com/repos/tsenart/sight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tsenart/sight/downloads","issues_url":"https://api.github.com/repos/tsenart/sight/issues{/number}","pulls_url":"https://api.github.com/repos/tsenart/sight/pulls{/number}","milestones_url":"https://api.github.com/repos/tsenart/sight/milestones{/number}","notifications_url":"https://api.github.com/repos/tsenart/sight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tsenart/sight/labels{/name}","releases_url":"https://api.github.com/repos/tsenart/sight/releases{/id}","created_at":"2010-10-04T03:01:52Z","updated_at":"2015-02-18T18:30:24Z","pushed_at":"2015-03-05T11:04:24Z","git_url":"git://github.com/tsenart/sight.git","ssh_url":"git@github.com:tsenart/sight.git","clone_url":"https://github.com/tsenart/sight.git","svn_url":"https://github.com/tsenart/sight","homepage":"chrome.google.com/extensions/detail/epmaefhielclhlnmjofcdapbeepkmggh","size":4445,"stargazers_count":120,"watchers_count":120,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":32,"mirror_url":null,"open_issues_count":6,"forks":32,"open_issues":6,"watchers":120,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tsenart/sight/pulls/58"},"html":{"href":"https://github.com/tsenart/sight/pull/58"},"issue":{"href":"https://api.github.com/repos/tsenart/sight/issues/58"},"comments":{"href":"https://api.github.com/repos/tsenart/sight/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/tsenart/sight/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/tsenart/sight/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tsenart/sight/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/tsenart/sight/statuses/1f3ea7ca4fa1662b8f773688219bae7b402017b1"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":5,"commits":1,"additions":6,"deletions":0,"changed_files":1}}