* 更新高亮层
(textareaId, backdropId)
| 26 | * 更新高亮层 |
| 27 | */ |
| 28 | function updateBackdrop(textareaId, backdropId) { |
| 29 | const ta = document.getElementById(textareaId); |
| 30 | const bd = document.getElementById(backdropId); |
| 31 | if (ta && bd) bd.innerHTML = applyHighlight(ta.value) + '\n'; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * 同步滚动 |
no test coverage detected