Format option values as code