{"id":1055,"date":"2018-04-18T13:12:42","date_gmt":"2018-04-18T13:12:42","guid":{"rendered":"http:\/\/blog.silverterra.net\/?p=1055"},"modified":"2019-01-02T14:26:07","modified_gmt":"2019-01-02T14:26:07","slug":"use-regions-in-mvs2015-for-php-files","status":"publish","type":"post","link":"https:\/\/blog.silverterra.net\/?p=1055","title":{"rendered":"use regions in MVS2015 for php files"},"content":{"rendered":"<blockquote><p>Goal: I want fold-able code for php like I have to js files<\/p><\/blockquote>\n<p>The texteditor-like editors are great but without regions your life would be difficult. The Microsoft Visual Studio platform provides a very nice feature to use regions.<br \/>\nThe simpliest way is the following form &#8211; you can use it for javascript<\/p>\n<pre data-enlighter-language=\"js\" class=\"EnlighterJSRAW\">\r\n...\r\n\/\/#region [name for the region]\r\n... your foldable code coming here\r\n\/\/#endregion [name for the region &#x3C;- if you want, easy to follow the end of the opened region]\r\n...\r\n<\/pre>\n<p>The <b>php<\/b> form is a little bit different<\/p>\n<pre data-enlighter-language=\"c\" class=\"EnlighterJSRAW\">\r\n...\r\n#region [name for the region]\r\n... your foldable code coming here\r\n#endregion [name for the region &#x3C;- if you want, easy to follow the end of the opened region]\r\n...\r\nor\r\n...\r\n\/\/region [name for the region]\r\n... your foldable code coming here\r\n\/\/endregion [name for the region &#x3C;- if you want, easy to follow the end of the opened region]\r\n...\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Goal: I want fold-able code for php like I have to js files The texteditor-like editors are great but without regions your life would be difficult. The Microsoft Visual Studio platform provides a very nice feature to use regions. The simpliest way is the following form &#8211; you can use it for javascript The php [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,22,10],"tags":[],"class_list":["post-1055","post","type-post","status-publish","format-standard","hentry","category-javascript","category-mvs","category-php"],"_links":{"self":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/1055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1055"}],"version-history":[{"count":16,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/1055\/revisions"}],"predecessor-version":[{"id":1110,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/1055\/revisions\/1110"}],"wp:attachment":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}