Added Scala and Groovy language support

Added support for Scala and Groovy. Tested, both work nicely with selection and file.