add checking syntax on the fly using codetools

add option flag to enable/disable syntax checking on the fly

problems : shows not all errors when writing code outside compound statement