Use rst style code marking.
Remove references to deprecated value_handler in code generator.