mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
[xml] Add OPF and XSL file extensions (#64)
[xml] Add OPF and XSL file extensions
This commit is contained in:
commit
e9de765a1e
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ import { registerLanguage } from '../_.contribution';
|
||||||
|
|
||||||
registerLanguage({
|
registerLanguage({
|
||||||
id: 'xml',
|
id: 'xml',
|
||||||
extensions: ['.xml', '.dtd', '.ascx', '.csproj', '.config', '.wxi', '.wxl', '.wxs', '.xaml', '.svg', '.svgz'],
|
extensions: ['.xml', '.dtd', '.ascx', '.csproj', '.config', '.wxi', '.wxl', '.wxs', '.xaml', '.svg', '.svgz', '.opf', '.xsl'],
|
||||||
firstLine: '(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)',
|
firstLine: '(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)',
|
||||||
aliases: ['XML', 'xml'],
|
aliases: ['XML', 'xml'],
|
||||||
mimetypes: ['text/xml', 'application/xml', 'application/xaml+xml', 'application/xml-dtd'],
|
mimetypes: ['text/xml', 'application/xml', 'application/xaml+xml', 'application/xml-dtd'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue