{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/11331","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/11331/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/11331/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/11331/events","html_url":"https://github.com/Microsoft/vscode/issues/11331","id":174336666,"number":11331,"title":"Support setting the default language for code blocks in Hovers","user":{"login":"DanTup","id":1078012,"avatar_url":"https://avatars.githubusercontent.com/u/1078012?v=3","gravatar_id":"","url":"https://api.github.com/users/DanTup","html_url":"https://github.com/DanTup","followers_url":"https://api.github.com/users/DanTup/followers","following_url":"https://api.github.com/users/DanTup/following{/other_user}","gists_url":"https://api.github.com/users/DanTup/gists{/gist_id}","starred_url":"https://api.github.com/users/DanTup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanTup/subscriptions","organizations_url":"https://api.github.com/users/DanTup/orgs","repos_url":"https://api.github.com/users/DanTup/repos","events_url":"https://api.github.com/users/DanTup/events{/privacy}","received_events_url":"https://api.github.com/users/DanTup/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/api","name":"api","color":"1d76db"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/feature-request","name":"feature-request","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"assignees":[{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-08-31T17:52:26Z","updated_at":"2016-09-01T12:59:25Z","closed_at":null,"body":"It would be really helpful if we could provide the language that should be used for code blocks in `Hover`s. Currently we can pass a string of markdown (where code will be uncoloured) or a chunk of text where the _whole thing_ will be considered code in a language.\r\n\r\nIn Dart, comments are already markdown, so we have code like this:\r\n\r\n```\r\n/// This is a great method.\r\n/// \r\n/// Here is some example code:\r\n/// \r\n///     final name = \"Danny\";\r\n///     print(name);\r\ndanny() {\r\n\r\n}\r\n```\r\n\r\nThe string we get is exactly like that, minus the `/// `. In order to get Dart highlighting code the code, we would have to split the document up, detect the code blocks and then created `MarkedString`s with the language set to Dart as each one. This is quite complicated because there are other things that are indented the same way with blank lines before/after (like nested lists). It would be great if we could just set the code language and pass markdown directly."},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/244070742","html_url":"https://github.com/Microsoft/vscode/issues/11331#issuecomment-244070742","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/11331","id":244070742,"user":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T12:59:25Z","updated_at":"2016-09-01T12:59:25Z","body":"Yeah - it would be the default when no `language` is set. Slightly on thin ice with that cos it changes existing behaviour but I'll give it a shot beginning of September"}}
{"actor":{"display_login":"jrieken"}}