Added Scala and Groovy language support

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