Update a code block