SoftTimur
SoftTimur
The code of [lexer_lexbuf_to_supplier](https://gitlab.inria.fr/fpottier/menhir/-/blob/master/lib/Engine.ml#L560) is as follows: ``` let lexer_lexbuf_to_supplier (lexer : Lexing.lexbuf -> token) (lexbuf : Lexing.lexbuf) : supplier = fun () -> let token = lexer lexbuf in...
Are you sure `monaco.editor.setModelLanguage(editor.getModel(), "cpp")` works? I have got an error `TypeError: monacoeditor.setModelLanguage is not a function` in [this code](https://jsbin.com/qagativuwe/1/edit?html,output). In my code `monacoeditor` seems to be `ICommonCodeEditor`, I also...
I opened [another issue](https://github.com/Microsoft/monaco-editor/issues/535)
I want to make manaco editor work with angularjs 1.X as well...
@rebornix In your comment, do you mean 1 or 2, or 1 and 2? I wanted to look for a solution other than AMD loader or RequireJS... I will test...
Sorry, I was not clear... I asked if you mean `1. AMD load... **and** 2. Hold a reference` or `1. AMD load... **or** 2. Hold a reference`?
@jack-arms Thank you very much for your solution, it works so far... here is a working [JSBin](https://jsbin.com/cahijegute/2/edit?html,output). Additionally, I have at least the syntax highlighting for `javascript`, `html` and `css`...
My friend... can you just make sure if your comment answered my question before closing the issue? Otherwise, it just gives the feeling that your mission is to close issues...
I think the name `javascript` is fine... In your screenshot, you used `monaco.editor.createModel("var a = 1;")`, whereas in my code I used `monaco.editor.create(document.getElementById('container'), { ... })`, whose type is different,...
Got it, I should use `monaco.editor.setModelLanguage(monacoeditor.getModel(), newValues[key])` rather than `monacoeditor.setModelLanguage(monacoeditor.getModel(), newValues[key])`, where `monacoeditor` is my editor, and its type is probably `ICommonCodeEditor`, and does not have the `setModelLanguage` function. Here...