22 lines
998 B
Markdown
22 lines
998 B
Markdown
# Visual HTML editor
|
|
|
|
`.html` files open with **Code / Split / Design / Preview** (the buttons at the bottom right of the editor; the choice is
|
|
remembered). It is made for desktop apps' pages (`ui/*.html`) and game sites (`site/index.html`), and works on any page.
|
|
|
|
## Design
|
|
|
|
- **Components**: drag them from the palette onto the page.
|
|
- **Layers**: the page's elements as a tree; select, move, delete.
|
|
- **Inspector**: attributes, classes, inline styles of the selected element.
|
|
- **CSS rules** of the linked stylesheets that apply to it, edited in place (saved to their file).
|
|
- **Devices**: desktop, tablet, phone widths.
|
|
- Undo / redo.
|
|
|
|
The HTML stays as you wrote it: the `<head>`, scripts and comments are kept; only what you change in Design is rewritten.
|
|
|
|
## Preview
|
|
|
|
The page in a sandboxed frame, updated as you type, with the project's stylesheets, pictures and fonts; scripts run only when
|
|
**Scripts** is ticked.
|
|
|
|
Related: [CSS editor](css-editor.md), [Twig preview](twig-preview.md).
|