Don't use "Apply" button for syntax configuration
Settings in app preferences are meant to be insta-apply, and should not require an explicit "apply" action.
If there is a really good reason why these can't be insta-apply, I'd put them in a separate dialog with Cancel/Apply buttons.