Edit a website in Code
See an editor website as one file in Code, lay the file out with Format file, and have pasted HTML or CSS formatted as it lands.
Code shows the whole website as one file: the layout every page shares
(the head, the styles, the header, the footer and any scripts), with
{% content %} where each page's sections go, then every page between
{% page … %} and {% endpage %}. The preview beside it shows the page open
in the editor.
A page's name, address and place in the navigation can change in the file too, and wait for Save page changes; see Tu sitio web en un solo archivo.
Format the file
Format file lays the layout and each page out one element to a line, with
nested elements indented, a new line after each <br>, the styles one
declaration to a line and the scripts indented under their tag.
- Nothing but the spaces between things changes.
<pre>and<textarea>are left as written.- The comments and the page lines are left as they are.
- Ctrl+Z (Cmd+Z on a Mac) puts the file back as it was.
Format pasted code
While Format pasted code is ticked, HTML or CSS you paste is laid out the same way as it lands, at the depth of the line you paste it on. A short piece pasted into a line is left as it is. The box stays as you set it in that browser.
Replace a page or the whole website
Import JSON… in More replaces the open page's sections with a pasted JSON document or page of HTML; see Build a website by pasting JSON.
A whole website file, from an AI assistant for example, replaces the whole website in Code mode; see Tu sitio web en un solo archivo.
To change a colour in the file, see Change a website's colours and font.
If the file cannot be saved or formatted, Contactar con soporte.
Preguntar al soporte de Magpie
Envía al equipo de Magpie una pregunta sobre cualquier cosa que este artículo no responda.