Update code spans