Consistent code blocks around ranges