set the type of code blocks