snap-code implement in general editor