Home>Article>Development Tools> How to compile html in sublime
Steps to compile HTML in Sublime Text: Install the HTML preprocessor plug-in. Create HTML documents. Save the file with a .html extension. Press Ctrl Alt B (Windows/Linux) or Cmd Option B (Mac) to compile the HTML. View the compiled file named index.html located in the current directory.
How to compile HTML in Sublime Text
Sublime Text is a popular text editor that can For editing and compiling various programming languages, including HTML. The following steps describe how to compile HTML in Sublime Text:
Step 1: Install the HTML preprocessor
Step 2: Create HTML Document
简单 HTML 页面
欢迎访问我的网站
这是一段段落。
Step 3: Save the file
.html
, such asindex.html
.Step 4: Compile HTML
Ctrl
Alt
B
(Windows/Linux) orCmd
Option
B
(Mac) keys to compile HTML.Step 5: View the compilation results
After compilation, Sublime Text will generate a file namedindex.html
in the current directory document. This file contains HTML code formatted for viewing in a browser.
Tip:
The above is the detailed content of How to compile html in sublime. For more information, please follow other related articles on the PHP Chinese website!