sets folding method to syntax for main code extensions