Monaco editor options
Pass any Monaco editor options via editorOptions. They are deep-merged over Yasqe's defaults.
ts
new Yasqe(el, {
editorOptions: {
lineNumbers: "off",
wordWrap: "off",
fontSize: 16,
minimap: { enabled: true },
renderWhitespace: "all",
},
});Via SPARQL Studio, forward them through the yasqe option:
ts
new SparqlStudio(el, {
yasqe: { editorOptions: { fontSize: 16 } },
});Defaults
Yasqe's defaults already enable:
- line numbers
- word wrap
- bracket matching
- code folding
- the VS Code right-click context menu (including Format Document)
- semantic highlighting
You only need editorOptions to override these or to enable extra Monaco features.