Build to HTML / Preview¶
This extension allows you to display a preview of the HTML next to the text editor. Also, when you save a file with the preview mode enabled, it will automatically start building and update the view.
Procedure¶
Select and open a file in rst format
Click on the triangle symbol that appears in the upper right corner of the panel
Select one of the following items:
Preview HTML [Built-in build]
(currently only available on Windows) orPreview HTML [User env build]
.[Built-in build]
: Build using the executable file included with the extension[User env build]
: Build using the Sphinx environment installed on the user’s machine.See also
See Build for details.
When the build is executed, the execution status will be displayed in the Terminal, which will automatically close when it is finished.
On the right side of the editor, you will see a preview of the built HTML
Automatic Updates¶
Change the contents of the rst file and save it
The build will start automatically and the preview screen will be updated
Close the preview screen panel when exiting the build or preview
Note
Running Preview HTML [Built-in build]
will execute the file sphinxhelper.exe
, which is included with the extension. Please allow the execution of this file, as it may be restricted by your security software.
The original file/program of this exe file is available on GitHub .
See also
- Known Issues> HTML Preview
Known problems and items that could be improved in the future are summarized.
- Details of each function> Settings (Config)
There is an option to not close the Terminal after the build is finished running.