Reference Docs: Show only the most appropriate code snippet for each control

This implements #5.