Capture modified code in editor