Quantcast
Channel: User Jack - Stack Overflow
Viewing all articles
Browse latest Browse all 40

How to set monaco's font style?

$
0
0

I need to display the words in italic within the editor. How can I do that? I didn't find how to set this in the IStandaloneEditorConstructionOptions options when passing it to create only how to specify that with defineTheme() like that:

monaco.editor.defineTheme('placeHolderTheme', {    base: 'vs-dark',    inherit: false,    rules: [        {             token: 'my-token',            foreground: '#311b92',            fontStyle: 'italic'        },    colors: {"editor.background": "#2B2B2B",'editor.foreground': '#FFFFFF',    }});

but I do need to set the whole text at once. How can do that?


Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>