use regions in MVS2015 for php files  [ 200 views ]

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 – you can use it for javascript

...
//#region [name for the region]
... your foldable code coming here
//#endregion [name for the region <- if you want, easy to follow the end of the opened region]
...

The php form is a little bit different

...
#region [name for the region]
... your foldable code coming here
#endregion [name for the region <- if you want, easy to follow the end of the opened region]
...
or
...
//region [name for the region]
... your foldable code coming here
//endregion [name for the region <- if you want, easy to follow the end of the opened region]
...
#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }