mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
Include .xsd and .xslt as an XML extension.
This commit is contained in:
parent
e531b5c337
commit
08f81975c8
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