Recognize and distinguish between text and code blocks.