Microsoft/monaco-editor
Ver no GitHubMonaco Editor Colorize - Break Word Problem
Open
#2.701 aberto em 22 de out. de 2021
bughelp wanted
Métricas do repositório
- Stars
- (14.836 stars)
- Métricas de merge de PR
- (Mesclagem média 6h 26m) (15 fundiu PRs em 30d)
Description
When we use monaco editor colorize for highlighting content, break-word is not happening properly. The reason is that you use content for making spaces in content. So that we can't break word properly using CSS.
Example Code like this :
<span>
<span class="mtk1"> $(</span>
<span class="mtk40">'.zc-branchesBody .dropdown-content'</span>
<span class="mtk1">).css(</span>
<span class="mtk40">'max-height'</span>
<span class="mtk1">, </span>
</span>
If the span tag containing like this "word-break: break-word" is not possible using CSS and javascript.
Any idea for "breakword containing content" ?