use 'rustpad' instead of 'snippet'
use ace editor instead of a simple textarea