You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] CJK characters showing up as red invalid characters #2833
// The Monaco Editor can be easily created, given an// empty container and an options literal.// Two members of the literal are "value" and "language".// The editor takes the full size of its container.monaco.editor.create(document.getElementById('container'),{value: "function hello() {\n\talert('Hello world!');\n}",language: 'javascript'});이것은한글입니다.// < ---- this line
Actual Behavior
The Korean character should be accepted. regard less to syntax.
Even if it is a valid syntax, it will still show up as red character. e.g. in jsx string <div>한글</div>
Universe (@softmarshmallow) It will not accept random Korean characters because the syntax is invalid. If you put it in a string it will not flag it as an error.
Activity
rcjsuen commentedon Dec 15, 2021
Universe (@softmarshmallow) It will not accept random Korean characters because the syntax is invalid. If you put it in a string it will not flag it as an error.
softmarshmallow commentedon Dec 15, 2021
Remy Suen (@rcjsuen) It also does not work in jsx/tsx Try tsx / jsx file with this content.
not working -
<div>한글</div>works (of-course)
<div>{"한글"}</div>rcjsuen commentedon Dec 15, 2021
I don't think the Monaco Editor supports JSX out-of-the-box. See #264.
softmarshmallow commentedon Nov 9, 2022
Remy Suen (@rcjsuen) What about the part that CJK Characters displaying as a red char? How do I solve that part (regarding less to JSX)