ToHTML.com

These 92 languages I can recognise from your code alone. Paste them with Autodetect selected and you should not have to pick a type. It works from the first few lines, so the more code you paste the better the guess.
Everything else in the full list of 284 languages still highlights perfectly, you just have to choose it from the Type list. When auto-detect is unsure it falls back to C, so if you get C for something that is not C, pick the language by hand. It now tells you when that has happened, and offers to take a sample so I can teach it that language for next time.

Main languages (19)

Web (12)

XML family (12)

Databases (5)

Assembly (2)

Functional and logic (1)

Hardware description (1)

Scripts, build and automation (16)

Config and INI (4)

Legacy and mainframe (5)

Rare and exotic (8)

Other formats (7)