How to suppress the pop-up dialog when enabling context checking?

Answered by: Brent Hartwig Last Updated: 2006-09-22

=Question by N.N.=

I need to use set context=on command to check if my document is valid against schema. But I do not want this message show as in dialog. I want it to be displayed as message at the bottom of the window status bar. How can I do this? Or is there any other function I can use to check against schema, and if not valid the cursor stops at the first invalid tag?

=Brent Hartwig answers=

How about using the command inside of the execute function?

execute("set context=on");

That should suppress the associated dialog.

(Editor's comment by Karl Johan Kleist: "set contextwarnings=off" should also do the trick)