mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
[folding] regions for html. Fixes #39409
This commit is contained in:
parent
a47be8c8c1
commit
4f9f4ebb9f
|
@ -22,5 +22,11 @@
|
|||
{ "open": "[", "close": "]"},
|
||||
{ "open": "(", "close": ")" },
|
||||
{ "open": "<", "close": ">" }
|
||||
]
|
||||
],
|
||||
"folding": {
|
||||
"markers": {
|
||||
"start": "^\\s*<--\\s*#region\\b",
|
||||
"end": "^^\\s*<--\\s*#endregion\\b"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue