Detect whether syntax hoghlighting has been toggled, to avoid erroneously reporting a document modification