You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import VideoPlayer from '@site/src/components/Video/player';
6
6
7
-
The Live Preview feature in Phoenix Code provides instant feedback on changes made to HTML and CSS files, enabling developers to see their edits in real-time. This feature is activated by default for HTML projects, while other project types require manual setup.
8
-
9
-
## Activating Live Preview for HTML Files
10
-
1. Select the HTML file you wish to edit from the editing panel.
11
-

12
-
2. Click the lightning bolt icon, located on the right panel, to initiate Live Preview.
13
-

14
-
3. The icon turns gold when Live Preview is active.
2. Click the pop-out icon to detach Live Preview into a new window.
22
-

23
-
3. Live Preview will now display in your default web browser, allowing for uninterrupted coding and viewing.
24
-
25
-
## Selecting a Browser for Live Preview
26
-
1. Hover over the Live Preview panel.
27
-
2. Choose your preferred browser by clicking its icon. 
28
-
3. Live Preview opens in the chosen browser.
29
-
30
-
## Reload Live Preview
31
-

32
-
The **Reload** button in the live preview toolbar allows you to manually refresh the Live Preview pane to ensure it reflects the latest changes in your code. While Live Preview updates automatically, the Reload button can be helpful if you encounter synchronization issues.
33
-
34
-
## Disable Live Preview
35
-
You can disable the live preview panel at startup by following these steps:
36
-
1. Click the settings icon in the toolbar (hover over the toolbar to make it appear).
3. Disable the `Show Live Preview Panel at Startup` option.
7
+
The **Live Preview** feature in **Phoenix Code** provides instant feedback on changes made to **HTML** and **CSS** files, letting you see your edits in real-time.
42
8
9
+
> For HTML files, Live Preview is enabled by default. For other file types, you might need to do some manual setup.
10
+
11
+
---
12
+
13
+
## Showing or Hiding Live Preview
14
+
15
+
To show or hide Live Preview, click the **Lightning Bolt** icon at the top of the right panel.
***Reload Live Preview** — Refreshes the Live Preview page. Normally, Live Preview updates in real-time but you can use this when Live Preview lags behind or doesn't update with your code changes.
***Live Preview Modes** — Live Preview offers 3 modes: **Preview Mode**, **Highlight Mode**, and **Edit Mode**.
80
+
81
+
-**Preview Mode**: Disables all editing features. The page appears as it would in a normal browser.
82
+
> Live Preview still updates in real-time when you edit source code in Preview Mode.
83
+
84
+
-**Highlight Mode**: When you click an element in Live Preview, a highlight marker appears showing the element's position, padding, and margin. **Phoenix Code** also moves your cursor in the editor to that element so you can start editing directly. Highlighting also works in reverse: moving your cursor in the editor highlights the corresponding element in Live Preview.
-**Edit Mode**: Allows you to edit Live Preview directly. You can edit text content, delete, duplicate, drag-drop elements and much more right from the Live Preview. **Phoenix Code** will automatically update the source code.
91
+
[Read more about Live Preview Edit Mode](../../pro-features/live-preview-edit).
92
+
> The `Edit Highlights on Hover` option in the dropdown is an Edit Mode feature.
***Preview Mode Button** — Located right after the Reload button, this provides a quick shortcut to switch to Preview Mode. Click it to switch to Preview Mode; click again to return to your previous mode.
***Pop Out to New Window** — Opens Live Preview in your default browser. This is helpful when you want to see how your page looks in a full browser window.
***Browser Icons** — Select a specific browser icon to open the page in that browser. This helps you see how your page looks across different browsers. The icons are hidden by default. You need to hover over the toolbar to reveal them.
***Live Preview Settings** — Located at the right-most side of the toolbar. [Read more about Live Preview Settings](./live-preview-settings/#accessing-live-preview-settings).
121
+
122
+
---
123
+
124
+
## Using Live Preview with HTML Files
125
+
126
+
1. Open the HTML file you want to preview.
127
+
2. Click the **Lightning Bolt** icon to open Live Preview (if it's closed).
128
+
3. Make changes to the HTML file and see them update in Live Preview in real-time.
129
+
130
+
> If changes don't appear, reload Live Preview and wait until the bolt icon turns full yellow.
0 commit comments