added functionality for user to choose lanuage for text editor when crea...

...ting a snip