schrö    Archive    Feed    About

TextMate tidbit: insert encoding in ruby files

Want to insert an encoding comment into your ruby code?

Do it TextMate style and create a snippet:

I know this is very static but I had not much time and decided for the simplest solution. I tried to read the actual encoding of the file you are inserting in, but always got "US-ASCII" insted of "UTF-8". So if you know better tweet me.