editor snippet