Format resource URLs as code