HTML Entities
This commit is contained in:
@@ -31,7 +31,8 @@ export const initEditor = (monacoEditor): void => {
|
||||
[/[a-z_$][\w$]*/, { cases: { '@typeKeywords': 'keyword', '@keywords': 'keyword' } }],
|
||||
[/[-+=>ox]+/, { cases: { '@arrows': 'transition' } }],
|
||||
[/[[{(}]+.+?[)\]}]+/, 'string'],
|
||||
[/".*"/, 'string']
|
||||
[/".*"/, 'string'],
|
||||
[/#(\d|[a-zA-Z])*;/, 'html.entity']
|
||||
]
|
||||
},
|
||||
whitespace: [
|
||||
@@ -48,7 +49,8 @@ export const initEditor = (monacoEditor): void => {
|
||||
{ token: 'custom-error', foreground: 'ff0000', fontStyle: 'bold' },
|
||||
{ token: 'string', foreground: 'AA8500' },
|
||||
{ token: 'transition', foreground: '008800', fontStyle: 'bold' },
|
||||
{ token: 'delimiter.bracket', foreground: '000000', fontStyle: 'bold' }
|
||||
{ token: 'delimiter.bracket', foreground: '000000', fontStyle: 'bold' },
|
||||
{ token: 'html.entity', foreground: 'f5b436' }
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user