Set current language without saving file in Sublime Text

I have recently started using Sublime Text 2 after getting tired with Notepad++. Now, if I wanted to set what language I am currently programming in in Notepad++, I would go to the Language menu, and select whichever language I wanted. But in Sublime, the only way I have found out how to do that is to save the file in the file format of the language, and then all the colouring and other syntax helpers are loaded. So, is there any way I can change the language I am writing in without saving? If so, how?

This is mainly because I want to play around with test scripts which don't need saving.


Click the Plain Text label at the bottom right of the window and select your language.

Plain Text syntax highlighting screenshot

Java syntax highlighting screenshot


Alternatively, select your language in the menu at View » Syntax, or open your command palette (CtrlShiftP) and type ssjava (equals to Set Syntax: Java).