{"action":"created","issue":{"url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/33","labels_url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/33/comments","events_url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/33/events","html_url":"https://github.com/isocpp/CppCoreGuidelines/issues/33","id":107345733,"number":33,"title":"Trigger syntax highlighting for code examples","user":{"login":"patrickmckenna","id":3589536,"avatar_url":"https://avatars.githubusercontent.com/u/3589536?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickmckenna","html_url":"https://github.com/patrickmckenna","followers_url":"https://api.github.com/users/patrickmckenna/followers","following_url":"https://api.github.com/users/patrickmckenna/following{/other_user}","gists_url":"https://api.github.com/users/patrickmckenna/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickmckenna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickmckenna/subscriptions","organizations_url":"https://api.github.com/users/patrickmckenna/orgs","repos_url":"https://api.github.com/users/patrickmckenna/repos","events_url":"https://api.github.com/users/patrickmckenna/events{/privacy}","received_events_url":"https://api.github.com/users/patrickmckenna/received_events","type":"User","site_admin":true},"labels":[{"url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/labels/open","name":"open","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-19T17:22:13Z","updated_at":"2015-09-24T07:15:54Z","closed_at":null,"body":"Suggestion: make use of syntax-highlighting available in GitHub-flavored Markdown. \r\n\r\n[Example current view](https://github.com/isocpp/CppCoreGuidelines/blob/95f6cfcdd8209e85d398132cad481d837c6d714b/CppCoreGuidelines.md#discussion-make-base-class-destructors-public-and-virtual-or-protected-and-nonvirtual):\r\n\r\n<img width=\"954\" alt=\"no_syntax_highlighting\" src=\"https://cloud.githubusercontent.com/assets/3589536/9977284/1a06c6cc-5eb6-11e5-9d6c-1f8e4af06b70.png\">\r\n\r\n\r\n[Example with syntax highlighting](https://github.com/patrickmckenna/CppCoreGuidelines/blob/bf0d5a54de184e8edfa06477948a612e2d7baff2/CppCoreGuidelines.md#discussion-make-base-class-destructors-public-and-virtual-or-protected-and-nonvirtual):\r\n\r\n<img width=\"952\" alt=\"with_syntax_highlighting\" src=\"https://cloud.githubusercontent.com/assets/3589536/9977289/37b8253a-5eb6-11e5-8d86-1d7873d22495.png\">\r\n\r\nNote: many of the current code examples use indentation, rather than [fenced code block syntax](https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks), to trigger monospace rendering. Those examples would need to be converted to fenced code blocks to get syntax highlighting.\r\n\r\nHappy to open a PR if this is desired."},"comment":{"url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/comments/142836782","html_url":"https://github.com/isocpp/CppCoreGuidelines/issues/33#issuecomment-142836782","issue_url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/33","id":142836782,"user":{"login":"Kristine1975","id":11298402,"avatar_url":"https://avatars.githubusercontent.com/u/11298402?v=3","gravatar_id":"","url":"https://api.github.com/users/Kristine1975","html_url":"https://github.com/Kristine1975","followers_url":"https://api.github.com/users/Kristine1975/followers","following_url":"https://api.github.com/users/Kristine1975/following{/other_user}","gists_url":"https://api.github.com/users/Kristine1975/gists{/gist_id}","starred_url":"https://api.github.com/users/Kristine1975/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kristine1975/subscriptions","organizations_url":"https://api.github.com/users/Kristine1975/orgs","repos_url":"https://api.github.com/users/Kristine1975/repos","events_url":"https://api.github.com/users/Kristine1975/events{/privacy}","received_events_url":"https://api.github.com/users/Kristine1975/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T07:15:54Z","updated_at":"2015-09-24T07:15:54Z","body":"Just for the record: It apparently (I havent't tested it) is possible to [turn off syntax highlighting in Github](https://mobile.twitter.com/greghendershott/status/561027345096916992):\r\n1. Install the Stylish browser-addon ([Firefox](https://addons.mozilla.org/de/firefox/addon/stylish/), [Chrome](https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe)).\r\n2. Use [this stylesheet](https://gist.github.com/greghendershott/671dd311b77569ba2eaf)."}}