Adapter support for code blocks