What is good free tool (both online, offline) to convert code (could be also html code) text snippet (already formatted) to html with code highlighting (keywords at least) and keep original formatting (as html snippet already) to make it possible to insert to blog?
If you are using WordPress, I can recommend this extension. It should be exactly what you are looking for.
Just an example, taken from the page:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With