Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7dd5d8a
feat: add docs for starter bar
devvaannsh Jul 23, 2026
205460b
feat: add doc for styles bar feature
devvaannsh Jul 24, 2026
47fb0f0
feat: add documentation for doc comments - jsdoc
devvaannsh Jul 24, 2026
11bbe75
feat: documentation for js ts code intelligence
devvaannsh Jul 24, 2026
2980b01
feat: add category json file for code intelligence section
devvaannsh Jul 24, 2026
e21e1e0
feat: add documentation for json code intelligence
devvaannsh Jul 24, 2026
b2587e9
feat: add doc for php code intelligence
devvaannsh Jul 24, 2026
fdd5ac7
feat: write doc for python code intelligence
devvaannsh Jul 25, 2026
298b7cc
feat: update php intelligence documentation
devvaannsh Jul 25, 2026
214f98b
refactor: improved json code intelligence doc
devvaannsh Jul 25, 2026
3c034d4
feat: add documentation for video and audio preview
devvaannsh Jul 25, 2026
ecbdc08
feat: add about styles bar in the index md file
devvaannsh Jul 25, 2026
1adfd78
feat: add php code intelligence hyperlink to php live preview
devvaannsh Jul 25, 2026
08f2495
fix: typos and readability improved in eslint docs
devvaannsh Jul 25, 2026
e58bd5b
feat: move extensions and themes to root level
devvaannsh Jul 25, 2026
9949ffc
feat: remove funcdocr from popular extensions as feature now integrated
devvaannsh Jul 25, 2026
abbe737
feat: make the docs hyperlinks in getting started
devvaannsh Jul 25, 2026
7db71f9
feat: update docs to reflect the new styles bar changes
devvaannsh Jul 31, 2026
025ffe2
fix: update starter bar doc to include its preference toggle option
devvaannsh Jul 31, 2026
d2ce789
fix: update preference naming for code intelligence hints
devvaannsh Jul 31, 2026
9386f03
feat: update json code intelligence doc to mention it works in deskto…
devvaannsh Jul 31, 2026
b7d6f9f
feat: add aif format in audio section for supported formats
devvaannsh Jul 31, 2026
968745e
feat: update ai doc to cover model switching and turning ai off
devvaannsh Jul 31, 2026
cbe2753
feat: update git doc to cover new branch toggle button and open all c…
devvaannsh Jul 31, 2026
37b3db1
refactor: improved flow in ai doc
devvaannsh Jul 31, 2026
434f6b8
feat: add code intelligence index markdown doc
devvaannsh Jul 31, 2026
f68854c
refactor: update js ts code intelligence doc
devvaannsh Jul 31, 2026
2e96f6a
refactor: update other code intelligence languages doc files
devvaannsh Jul 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions docs/01-Getting Started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@ Here's what sets Phoenix Code apart.

## Free vs Pro

You can build complete websites for free. The core editor, Live Preview, Design Mode, Git, Terminal, and code tools are all included at no cost.
You can build complete websites for free. The core editor, [Live Preview](/docs/Features/Live%20Preview), [Design Mode](/docs/design-mode), [Git](/docs/Features/git), [Terminal](/docs/Features/terminal), and code tools are all included at no cost.

**Phoenix Pro** adds:

- **Live Preview Edit** — edit the rendered page directly and sync changes back to your source automatically.
- **AI** — unlimited AI use (free users get a daily and monthly chat limit).
- **Device Preview** — check how your page looks at phone, tablet, and desktop sizes.
- **Measurements** — ruler lines from a selected element to the edges of the page, labeled with exact pixel positions, for precise alignment.
- **Image Gallery** — browse stock images from providers like Unsplash and Pexels and embed or download them into your project without leaving Phoenix Code.
- **Markdown Editor** — edit Markdown directly in the preview with a full rich-text editor that keeps your source in sync.
- **[Live Preview Edit](/docs/Pro%20Features/live-preview-edit)**: edit the rendered page directly and sync changes back to your source automatically.
- **[Styles Bar](/docs/Pro%20Features/styles-bar)**: style any element visually from the Live Preview, with fonts, colors, spacing, and layout controls that save straight to your CSS.
- **[AI](/docs/Pro%20Features/ai-chat)**: unlimited AI use (free users get a daily and monthly chat limit).
- **[Device Preview](/docs/Pro%20Features/device-preview)**: check how your page looks at phone, tablet, and desktop sizes.
- **[Measurements](/docs/Pro%20Features/measurements)**: ruler lines from a selected element to the edges of the page, labeled with exact pixel positions, for precise alignment.
- **[Image Gallery](/docs/Pro%20Features/image-gallery)**: browse stock images from providers like Unsplash and Pexels and embed or download them into your project without leaving Phoenix Code.
- **[Markdown Editor](/docs/Pro%20Features/markdown-editor)**: edit Markdown directly in the preview with a full rich-text editor that keeps your source in sync.

See plans on the [pricing page](https://phcode.io/pricing).

Expand Down
26 changes: 25 additions & 1 deletion docs/02-Live Preview/02-live-preview-edit.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import VideoPlayer from '@site/src/components/Video/player';
[Upgrade to Phoenix Code Pro](https://phcode.io/pricing) to access this feature.
:::

**Edit Mode** lets you modify your page directly in the Live Preview. You can edit text, insert new elements, rearrange them with drag and drop, swap images, edit links, and much more.
**Edit Mode** lets you modify your page directly in the Live Preview. You can edit text, insert new elements, rearrange them with drag and drop, swap images, edit links, style elements, and much more.
**Phoenix Code** updates your source code automatically as you make changes.

<VideoPlayer
Expand All @@ -26,6 +26,30 @@ To switch to Edit Mode, click the **pen icon** in the Live Preview toolbar. This

Alternatively, you can switch to Edit Mode by updating the `livePreviewMode` setting in the preferences file. See [Editing Preferences](../editing-text#editing-preferences) to learn how to edit the preferences file.

## Starter Bar

Edit Mode needs an element to work on, so on a blank page there is nothing to click yet. When your page has no content, a **Starter Bar** appears at the bottom center of the Live Preview to add your first element.

<!-- TODO: PLUTO - add video here showing the starter bar working -->

The bar shows the most common elements: Heading, Paragraph, Image, Link, Button, and Div. Click one to add it to the page.

To pick from the full element list, click the **three-dots icon** at the end of the bar. This opens a searchable list with the same elements as the [Insert Element](#insert-element) panel.

<!-- TODO: PLUTO - add image here showing the starter bar searchable list -->

When you pick an element:

- If the file is empty, Phoenix Code creates the standard HTML page structure and places the element inside `<body>`.
- If the file already has some markup, it is preserved and the element is added to it.

The new element is automatically selected so you can continue editing. Press `Ctrl/Cmd + Z` to undo the insert.

> The Starter Bar disappears once your page has content, and comes back if the page becomes empty again, for example after you delete every element.

To turn the Starter Bar off, set the `livePreviewShowStarterBar` preference to `false`. It is `true` by default.
See [Editing Preferences](../editing-text#editing-preferences) to learn how to edit the preferences file.

## Control Box

When you click an element in the Live Preview, a **Control Box** appears near it. This floating panel shows you what the element is and gives you tools to edit it.
Expand Down
186 changes: 186 additions & 0 deletions docs/02-Live Preview/03-styles-bar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
---
title: Styles Bar
slug: "/Pro Features/styles-bar"
---

:::info Pro Feature
[Upgrade to Phoenix Code Pro](https://phcode.io/pricing) to access this feature.
:::

The **Styles Bar** lets you style elements visually right inside the Live Preview, and it automatically syncs your code in real time.
When you select an element in [Edit Mode](./live-preview-edit), a bar appears at the bottom of the Live Preview with controls for **fonts**, **colors**, **borders**, **spacing**, **layout**, and more.

<!-- TODO: PLUTO - add video here showing the styles bar in action -->

> The controls shown depend on the selected element. For example, text controls are not shown for images.

You can move the bar to the top of the Live Preview using the **dock button** at the right end of the bar.

<!-- TODO: PLUTO - add image here showing the dock button -->

## Save Changes To

Phoenix Code gives you control to choose where you want to save your edits. By default, all the changes are saved directly on the element as an inline style. If you want to save the changes in one of the CSS rules, you can click on the **Save changes to** button:
<!-- TODO: PLUTO - add image here showing the save changes to button -->

It shows all the available selectors for that element. Select the one you want, and all the changes made to that element will automatically get saved in that selector.
> Each selector also shows the number of elements it affects on the page.

<!-- TODO: PLUTO - add image here showing the affects x elements -->

### Creating a New Style

Click **New style…** to save your edits in a new CSS rule. Type a class like `.card` or an id like `#hero` and click **Create**. Phoenix Code creates the rule and also adds the class or id to the element, so the rule applies right away.

<!-- TODO: PLUTO - add video here showing the new style creation -->

### Editing Element States

The **State** dropdown in the popover lets you style the element's `hover`, `focus`, and `active` states. Pick a state and the Live Preview turns it on while you edit, with a banner showing which state you are editing.

For any other state, type it in the **New style** field, for example `.button:disabled`.

<!-- TODO: PLUTO - add video of editing the hover state in the element -->

> States need a CSS rule to live in, so they are not available when saving to inline styles.

## Font Family

Opens a font picker with three tabs:

- **System**: Common system fonts like Arial, Georgia, and Verdana. These need no download and work everywhere.
- **Google**: The full Google Fonts collection. Popular fonts are shown first, and you can search for any font. Each font is shown in its own style, so you can see how it looks before picking it. Picking one adds the Google Fonts link to your HTML.
- **Manual**: Type any font name yourself. You can also upload a font file (`.ttf`, `.otf`, `.woff`, `.woff2`), and Phoenix Code adds it to your project and applies it.

Fonts already used on the page appear in an **On this page** group, so you can reuse them quickly.

<!-- TODO: PLUTO - add image here showing the font family popover -->

## Font Size

Sets the font size. Type a value or use the **+/-** buttons. Click the unit button to switch between `px`, `em`, `rem`, and `%`, and the value is converted to the new unit automatically.

> These shortcuts work in every number field of the Styles Bar: scroll over a field to change its value, hold `Shift` while clicking **+/-** for bigger steps `(x10)`, or hold `Alt` for smaller ones `(x0.1)`.

## Text Style

The text style popover has two tabs.

The **Format** tab:

- **Font weight**: Controls how thick the text is, with a slider from Thin (100) to Black (900).
- **Format**: Italic, underline, strikethrough, and overline.
- **Alignment**: Aligns text left, center, right, or justified.
- **Case**: Shows text as uppercase, lowercase, or capitalized, without changing the text in your HTML.
- **Cursor**: The mouse cursor shown when hovering over the element, like pointer or grab.

The **Spacing** tab:

- **Line height**: The vertical space between lines of text.
- **Letter spacing**: The space between characters.
- **Word spacing**: The space between words.
- **Text indent**: How far the first line of text is indented.

To learn more about these properties, see [MDN's text styling guide](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Text_styling/Fundamentals).

<!-- TODO: PLUTO - add image here showing the text style popover -->

> Looking for bold? Use the font weight slider.

## Background Color

The **Background color** button shows the element's current background color. Click it to open a full color picker:

- Pick a color visually, or type one as Hex, RGB, or HSL.
- The **opacity** field controls how see-through the color is.
- The **eyedropper** lets you pick a color from anywhere on the page.
- **Swatches** shown on the left side displays all the colors already used in the page, plus a set of common colors.

<!-- TODO: PLUTO - add image here showing the background color picker -->

> The eyedropper is not available in Firefox, Safari and in the Linux desktop app.

## Text Color

The **Text color** button works the same way as [Background Color](#background-color), but it controls the color of the element's text. It opens the same color picker.

## Border & Outline

The popover has two tabs, **Border** and **Outline**.

The **Border** tab:

- **Style**: None, solid, dashed, dotted, or double. Hovering an option previews it on the element.
- **Width**: The thickness of the border.
- **Color**: Click the swatch to open the color picker to set the color of the border.
- **Radius**: Rounds the corners of the bordered element.

By default, edits apply to all four sides of the border. Use the **sides button** in the popover header to edit only the top, right, bottom, or left side.

The **Outline** tab has the same style, width, and color options, plus:

- **Offset**: The gap between the outline and the element's edge.

> An outline is drawn outside the element's border and takes up no space on the page.

<!-- TODO: PLUTO - add image here showing the border and outline popover -->

## Box Model

The popover has three tabs, **Size**, **Padding**, and **Margin**. They sit together because they measure one element from the inside out.

The **Size** tab:

- **Width and Height**: The element's size. Empty fields show the current size of the element as placeholders.
- **Min / max**: Click the chip to set minimum and maximum size limits. This is very useful for creating responsive web pages.

The **Padding** and **Margin** tabs each show four fields for the top, right, bottom, and left sides, arranged around a frame just like they sit on the page.

> Padding is the space inside the element, between its content and its border. Margin is the space outside it.

The button in the center of the frame controls how the sides are linked:

- **Independent**: Each side has its own value.
- **Paired**: Top and bottom are linked, left and right are linked.
- **All linked**: One value for every side.

Linked fields are color coded so you can see which sides move together.

<!-- TODO: PLUTO - add image here showing the box model popover -->

## Layout

The popover has two tabs, **Display** and **Position**.

The **Display** tab:

- **Display**: How the element is laid out: `Block`, `Inline`, `Flex`, `Grid`, `Hidden`, and more. Picking `Flex` or `Grid` reveals options like `direction`, `alignment`, `wrap`, and `gap`.
- **Opacity**: How see-through the element is. This fades the whole element, including its text and children.

The **Position** tab:

- **Position**: `Static`, `Relative`, `Absolute`, `Fixed`, or `Sticky`, with fields to offset the element from each side.
- **Z-index**: Which element appears on top when elements overlap.

To learn more about these properties, see MDN's guides on [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) and [position](https://developer.mozilla.org/en-US/docs/Web/CSS/position).

<!-- TODO: PLUTO - add image here showing the layout popover -->

## When a Change Is Overridden

Sometimes a more specific CSS rule wins over the rule you are editing, so your change has no visible effect. In that case, Phoenix Code automatically adds `!important` to your change to make it take effect.

If the change is still overridden even after the `!important` property, Phoenix Code shows a notification with an **Apply anyway** button, which applies the style directly on the element so it always takes effect.

Read more about [CSS specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Cascade/Specificity) on MDN.

## Reset and Undo

Every popover has a **Reset** button in its header. It reverts all the changes you made since opening that popover. If you have not changed anything, the button stays disabled.

You can also undo any Styles Bar edit with `Ctrl/Cmd + Z`, like every other Edit Mode operation. See [Undo and Redo](./live-preview-edit#undo-and-redo).

## Hiding the Styles Bar

To hide the bar, open the **More Options** menu *(three-dots icon)* in the Control Box and unselect **Show Styles Bar**. While hidden, a **palette icon** appears in the Control Box tools to bring it back.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import VideoPlayer from '@site/src/components/Video/player';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

This page covers running PHP pages in the Live Preview. For PHP editing features like completions and error checking, see [PHP Code Intelligence](/docs/Features/php-code-intelligence).

Setting up Live Preview for PHP projects is straightforward with *Apache* and *XAMPP*. Below are the installation and configuration steps for each operating system:

<Tabs
Expand Down
26 changes: 26 additions & 0 deletions docs/03-ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Free users get a daily and monthly chat limit. Once you're past halfway on eithe
- **[Plan, Auto-Edit, and Edit modes](#permission-modes)** let you decide how much freedom the AI has. Plan mode confirms before any change, Auto-Edit applies safe edits automatically, and Edit lets you approve each action.
- **[Restore points and a visual undo timeline](#undo-and-restore)** mean every AI change is reversible. If you don't like what it did, roll back with one click.
- **Live preview integration** — the AI can see your running app, take screenshots, click around, and verify its own work.
- **[Choose the model](#choosing-a-model)** you want, and switch it even in the middle of a chat.
- **[Bring your own provider](#settings)** — Claude from Anthropic (the default) gives the best results, or bring your own API key from any Claude Code CLI-compatible provider.
- **Privacy-first onboarding** with a clear consent dialog and a video walkthrough.
- **[Type while the AI is still working](#sending-messages)** — your next message gets queued.
Expand All @@ -39,6 +40,8 @@ AI requires the Claude Code CLI to be installed on your machine. If it's not ins

Once installed, click **Set up Claude Code** to log in. Phoenix Code detects when the login is complete and opens the chat panel automatically.

If your login expires later, the chat shows a **Claude Code is signed out or your login has expired** notice with a **Log in to Claude in Terminal** button. Click it, type `/login` in the terminal that opens, then send your message again.

<VideoPlayer
src="https://docs-images.phcode.dev/website/videos/claude-code-config.mp4"
/>
Expand Down Expand Up @@ -92,6 +95,19 @@ Click the **camera button** to take a screenshot and attach it. The dropdown let

![Camera screenshot dropdown](./images/pro/ai-screenshot-dropdown.png "Camera screenshot dropdown")

## Choosing a Model

The chat header shows which model is answering you. Hover over the panel and the model name appears on the left. Click it to pick a different one.

<!-- TODO: PLUTO - add image here showing the model dropdown in the chat header -->

The dropdown lists:

- **Default**: lets Claude Code pick. The row shows which model that is right now, for example *Currently Opus*.
- The models your provider offers, such as **Opus**, **Sonnet**, and **Haiku**.

You can switch models in the middle of a chat. The new model takes over from your next message and keeps the conversation history.

## Permission Modes

The AI has three permission levels that control how much it can do on its own. Click the **permission label** at the bottom of the panel to cycle between them.
Expand Down Expand Up @@ -159,6 +175,16 @@ Phoenix Code uses the Claude Code CLI under the hood, so it works with any provi
- **z.ai GLM** — tested working as a drop-in alternative. Use z.ai's Anthropic-compatible endpoint as the base URL.
- **Other Anthropic-API-compatible providers** — add the provider's base URL and API key in the dialog above.

## Turning AI Off

If you don't want AI in your editor, you can switch it off completely. Go to `View > Enable AI` and unselect it. Phoenix Code asks you to confirm, and the change takes effect after you restart the app.

You can also do this from the AI settings dialog, with the **Enable AI features** checkbox.

This turns off everything: the AI tab in the sidebar and the chat panel. To get it back, go to `View > Enable AI` again.

> This is a user controlled preference. For schools and workplaces, please refer to [AI Control For School And Work](/docs/control-ai).

## Keyboard Shortcuts

| Action | Shortcut |
Expand Down
Loading
Loading