[folding] regions for html. Fixes #39409

This commit is contained in:
Martin Aeschlimann 2017-12-01 10:51:05 +01:00
parent a47be8c8c1
commit 4f9f4ebb9f
3 changed files with 32 additions and 2 deletions

View file

@ -22,5 +22,11 @@
{ "open": "[", "close": "]"},
{ "open": "(", "close": ")" },
{ "open": "<", "close": ">" }
]
],
"folding": {
"markers": {
"start": "^\\s*<--\\s*#region\\b",
"end": "^^\\s*<--\\s*#endregion\\b"
}
}
}

View file

@ -67,6 +67,16 @@
}
}
],
"folding": {
"markers": {
"start": "^\\s*<!--\\s*#region\\b\\s*(.*?)-->/",
"end": "^\\s*<!--\\s*#endregion\\b\\s*(.*?)-->/"
}
},
"snippets": [{
"language": "html",
"path": "./snippets/html.snippets.json"
}],
"configuration": {
"id": "html",
"order": 20,

View file

@ -18,5 +18,19 @@
"</html>"
],
"description": "Simple HTML5 starting point"
},
"Region Start": {
"prefix": "#region",
"body": [
"<!-- #region -->"
],
"description": "Folding Region Start"
},
"Region End": {
"prefix": "#endregion",
"body": [
"<!-- #endregion -->"
],
"description": "Folding Region End"
}
}
}