mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Merge pull request #3866 from miloush/main
Include .xsd and .xslt as an XML extension
This commit is contained in:
commit
4244bc3a06
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ registerLanguage({
|
||||||
id: 'xml',
|
id: 'xml',
|
||||||
extensions: [
|
extensions: [
|
||||||
'.xml',
|
'.xml',
|
||||||
|
'.xsd',
|
||||||
'.dtd',
|
'.dtd',
|
||||||
'.ascx',
|
'.ascx',
|
||||||
'.csproj',
|
'.csproj',
|
||||||
|
|
@ -25,6 +26,7 @@ registerLanguage({
|
||||||
'.svg',
|
'.svg',
|
||||||
'.svgz',
|
'.svgz',
|
||||||
'.opf',
|
'.opf',
|
||||||
|
'.xslt',
|
||||||
'.xsl'
|
'.xsl'
|
||||||
],
|
],
|
||||||
firstLine: '(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)',
|
firstLine: '(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue