As a quick solution simply press at the right bottom “Auto Detect” and choose your desired syntax for current file.