add snippet editor to the demo