Home >Development Tools >sublime >Sublimetext 3 implements synchronous refresh of web page preview when editing markdown
The following column sublime tutorial will introduce to you the method of Sublimetext 3 to synchronously refresh the web page preview when editing markdown. I hope it will be helpful to friends in need!
To achieve real-time preview of Markdown
First, you need to install two plug-ins. It is strongly recommended to use Package Control to install
Markdown Preview
● Ctrl Shift p, enter Install Package
● Enter Markdown Preview, press Enter to install
After successful installation, edit the Markdown Preview Configuration file
Preferences -> Package Settings -> Markdown Preview -> Settings - User
Enable automatic reloading:
{ "enable_autoreload": true }
Restart Sublime text
LiveReload
● Ctrl Shift p, enter Install Package
● Enter LiveReload, press Enter to install
After successful installation, Ctrl shift p again, enter LiveReload: Enable/disable plug-ins, press Enter, select Simple Reload with delay (400ms) , you can achieve real-time preview.
It is worth noting that the suffix of the file name to be edited must be md.
The above is the detailed content of Sublimetext 3 implements synchronous refresh of web page preview when editing markdown. For more information, please follow other related articles on the PHP Chinese website!