slightly improved format_code_lang() internals for better readability
removed empty line