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 Ihre Website als eine Datei.

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 Ihre Website als eine Datei.

To change a colour in the file, see Change a website's colours and font.

If the file cannot be saved or formatted, Support kontaktieren.

Den Magpie-Support fragen

Senden Sie dem Magpie-Team eine Frage zu allem, was dieser Artikel nicht beantwortet.