Update code block rule