added language detection for code samples