If the syntax highlighting cannot be determined from the cookie (or it's not being set or working correctly), then use the filename extension if available.
Merge pull request #3 from codingbull/feature_file_extension

If the syntax highlighting cannot be determined from the cookie (or it's...