{"action":"created","issue":{"url":"https://api.github.com/repos/SteamLUG/steamlug.org/issues/117","labels_url":"https://api.github.com/repos/SteamLUG/steamlug.org/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/SteamLUG/steamlug.org/issues/117/comments","events_url":"https://api.github.com/repos/SteamLUG/steamlug.org/issues/117/events","html_url":"https://github.com/SteamLUG/steamlug.org/issues/117","id":53347159,"number":117,"title":"Formatting Style","user":{"login":"swordfischer","id":578215,"avatar_url":"https://avatars.githubusercontent.com/u/578215?v=3","gravatar_id":"","url":"https://api.github.com/users/swordfischer","html_url":"https://github.com/swordfischer","followers_url":"https://api.github.com/users/swordfischer/followers","following_url":"https://api.github.com/users/swordfischer/following{/other_user}","gists_url":"https://api.github.com/users/swordfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/swordfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swordfischer/subscriptions","organizations_url":"https://api.github.com/users/swordfischer/orgs","repos_url":"https://api.github.com/users/swordfischer/repos","events_url":"https://api.github.com/users/swordfischer/events{/privacy}","received_events_url":"https://api.github.com/users/swordfischer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-04T20:19:10Z","updated_at":"2015-03-13T22:31:42Z","closed_at":null,"body":"We need to describe our formatting for both PHP/CSS/HTML etc. as currently it's just one bunch of differently formatted code that is freaking unreadable.\r\n\r\nTabs/Spaces as indents - how many?\r\nSingle or Double quotes for strings?\r\nHow do we print html in php?\r\nGeneral width (80 chars?)?\r\netc.\r\n\r\nI've discussed this long time ago with @Cheeseness, but I'm all **against** `<div class = 'derp'>`  formatting.\r\n\r\n### Example of formatting I dislike\r\n\r\n    <p>The <a href = 'http://forums.steampowered.com/forums/showthread.php?t=1897204'>Linux User Group</a>\r\n\r\n### More 'common' formatting\r\n\r\n    <p>The <a href=\"http://forums.steampowered.com/forums/showthread.php?t=1897204\">Linux User Group</a>\r\n\r\n\r\n\r\n## HTML Formatting Idea\r\nWhen opening an element (likely block) that contains subelements, it should be newlined and indented once.\r\n\r\n    <div>\r\n         <p class=\"class\">text goes <em>here</em></p>\r\n    </div>\r\n\r\n## CSS Formatting idea\r\n\r\n    .class {\r\n        width: 100px;\r\n    }\r\n\r\n## PHP Formatting Idea\r\n\r\n    <?php\r\n        foreach ($foo as $bar) {\r\n            echo $bar;\r\n        }\r\n    ?>\r\n        \r\n\r\n@johndrinkwater @Cheeseness - Can we discuss this? Are there some common guidelines maybe, @johndrinkwater ?"},"comment":{"url":"https://api.github.com/repos/SteamLUG/steamlug.org/issues/comments/79490446","html_url":"https://github.com/SteamLUG/steamlug.org/issues/117#issuecomment-79490446","issue_url":"https://api.github.com/repos/SteamLUG/steamlug.org/issues/117","id":79490446,"user":{"login":"johndrinkwater","id":7708,"avatar_url":"https://avatars.githubusercontent.com/u/7708?v=3","gravatar_id":"","url":"https://api.github.com/users/johndrinkwater","html_url":"https://github.com/johndrinkwater","followers_url":"https://api.github.com/users/johndrinkwater/followers","following_url":"https://api.github.com/users/johndrinkwater/following{/other_user}","gists_url":"https://api.github.com/users/johndrinkwater/gists{/gist_id}","starred_url":"https://api.github.com/users/johndrinkwater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johndrinkwater/subscriptions","organizations_url":"https://api.github.com/users/johndrinkwater/orgs","repos_url":"https://api.github.com/users/johndrinkwater/repos","events_url":"https://api.github.com/users/johndrinkwater/events{/privacy}","received_events_url":"https://api.github.com/users/johndrinkwater/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T22:31:42Z","updated_at":"2015-03-13T22:31:42Z","body":"https://github.com/SteamLUG/steamlug.org/pull/153#discussion_r26402931"}}