To select a language in Sublime Text, follow these steps: 1. Create a new file; 2. Click the "View" menu; 3. Select the "Syntax" submenu; 4. From the submenu Select the desired language.
Select language in Sublime Text
Sublime Text is a popular code editor that can support multiple a programming language. Choosing the language to use is quick and easy.
Steps:
-
Open Sublime Text: Launch the Sublime Text application.
-
New file: Press
Ctrl
N
(Windows) or Cmd
N
(Mac ) creates a new file.
-
Select syntax: At the bottom of the screen, you will see a status bar showing the syntax of the current file.
-
Click the View menu: From the menu bar, click View.
-
Select the "Grammar" submenu: You will see a submenu with all supported languages.
-
Select the language you want: Select the language you want to use from the submenu.
Tip:
- Sublime Text automatically detects the type of code you enter in your file and chooses syntax accordingly.
- You can quickly switch grammar by double-clicking the grammar setting in the status bar.
- To see a list of all supported languages, go to Preferences menu > Settings - Default > Grammar.
- If your language is not listed, you need to install a plugin to add support.
The above is the detailed content of How to choose language in sublime. For more information, please follow other related articles on the PHP Chinese website!