alexp11223
05/23/2017, 6:35 PMreplaceText every time (when typing a letter, etc.) which is probably not ideal because it causes recomputation of things like syntax highlighting.
This is probably better:
viewModel.programCodeProperty.onChange {
if (it != inputArea.text) {
inputArea.replaceText(it)
}
}