You can use custom keyboard shortcuts to set the language. To do this, follow these steps.
Ensure syntax coloring mode is "active" (ie SnippetsLab the "Preferences" pane "selected").
Select the "editor"> "syntax coloring" from the menu bar, and note the name syntax coloring modes which you want to create a shortcut. E.g., Objective-C.
Open System Preferences, select Keyboard, and then select Shortcut.
Select the application shortcut from the list on the left, then click the + button below the list on the right.
Select "SnippetsLab" in the "Application" field and enter the exact name that you obtained in step 2 in the language of "Menu Title" field. Enter the desired key combination "keyboard shortcuts" field.
Click "Add" to submit.
All done! Now, you can press the specified keyboard shortcuts to set the language code segment currently displayed.
To learn more about application-specific shortcuts, see the Apple Support Technology to create an application keyboard shortcuts.