To enable custom code input during course creation, you have to turn off the Code Convention in the Site Admin > Admin Configuration.