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
Hello, it is possible to replace a decoration with customized dom element in Monaco? This maybe similar with replacedWith option in CodeMirror's markTexts method.
What I expect to implement is when user input something follow a certain pattern like {pattern_name(value1, value2, value3)}, it will displayed as pattern_name, but user could still get {pattern_name(value1, value2, value3)} when select-all and copy-paste.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, it is possible to replace a decoration with customized dom element in Monaco? This maybe similar with
replacedWith
option in CodeMirror's markTexts method.What I expect to implement is when user input something follow a certain pattern like
{pattern_name(value1, value2, value3)}
, it will displayed aspattern_name
, but user could still get{pattern_name(value1, value2, value3)}
when select-all and copy-paste.Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions