Editor Tips
Importing Word documents, tables, special characters, locked blocks, shared folders and other handy things in the page editor.
Inline code
Writing about code, file names or commands? Select the text and click Code in the toolbar to wrap it in a <code> tag, which most templates style in a monospace font. To remove it, put your cursor anywhere inside the code and click the button again.
- It works on text within a single paragraph or heading. If your selection spans several paragraphs, WebHaste leaves it alone and tells you in the status bar.
- For a whole block of code, use the Preformatted option in the paragraph-style dropdown instead.
- Inline code shows with a light grey background in the editor so you can spot it. That's only an editing aid; how it looks on your published site is up to your template's CSS.
Anchors: linking to a spot on a page
An anchor lets a link jump to a specific heading or paragraph, for example a table of contents at the top of a long page. Click inside the heading or paragraph and click Anchor, then type a short ID such as pricing and click Save. Spaces become hyphens, and the ID has to be unique on the page.
To link to it, select your link text, click Link and enter #pricing (to link from another page, use /page.html#pricing). The URL field suggests every ID already on the current page, so you don't have to remember them.
- The anchor is set on the block your cursor is in, so it jumps to the start of that heading or paragraph. A small ⚓ appears beside it in the editor (it isn't published).
- Click Anchor inside the same block again to rename the ID or remove it. Changing an ID breaks any links that still point to the old one.
- Anchors on divs and other containers are set through their ⚙ cog (the ID field), as before.
Tables
Click ▦ Table in the toolbar, choose the number of rows and columns and whether to include a header row, and click Insert. Once a table is in the page:
- Hover a row and a small toolbar appears in its first cell: +row adds a row below it, and 🗑 deletes the row. The last remaining row can't be deleted.
- +col on the table's own toolbar adds a column at the right edge. There's no delete-column button; to remove a column, switch to Code view.
- Tab moves to the next cell and Shift+Tab to the previous one, wrapping to the next row. At the very first or last cell, Tab behaves normally.
- The table's ⚙ cog opens its attributes: ID, class, a Locked option, and Layout table. Tick Layout table only if the table is used purely to position things rather than to show data — it tells screen readers not to treat it as a data table.
For tables of repeating data that you'll keep adding to — a price list, a directory — consider a List instead.
Importing a Word document
Got a draft in Word or Google Docs? Create the page first (see Creating a Page), click where you want the content to go, then click Import in the toolbar and choose a .docx file. It is inserted at your cursor, the same way a paste would be.
- Google Docs: use File → Download → Microsoft Word (.docx) first. Other formats, including the HTML download, aren't supported.
- What comes across: headings, paragraphs, bold and italic, links, bulleted and numbered lists, and tables. A Word "Title" becomes a top-level heading and a "Quote" style becomes a quotation block.
- What doesn't: fonts, colors, sizes, comments, footnotes, and headers and footers. The text takes on your site's own styling, so expect to tidy up headings and spacing afterwards. Tables arrive plain, with no framework classes.
- Images: pictures in the document are saved into your
assets/folder asdocumentname-image-1.png,-2and so on, and inserted where they appeared. Only PNG, JPG, GIF, WebP and SVG are brought in; older Word clip art formats (EMF, WMF) are skipped, and the status bar tells you how many. If any image is larger than your resize limit, you are asked once whether to shrink all of them. Importing the same document again reuses identical images instead of saving copies, and never overwrites a different file. - Import adds to the page you have open and never replaces it. If you switch to another page while a large document is still importing, nothing is inserted.
Treat the result as a good starting point rather than a finished page, and check it in Preview.
Special characters
Ω Symbols opens a picker of special characters — dashes, ©, ®, ™, degree and plus-minus signs, fractions, currency symbols and more. Click one and it's inserted at your cursor.
Locking a block
Hover near the top of a block or container, click its ⚙ cog, and tick Locked. A locked element's contents can't be typed into, so someone editing the page can't accidentally retype or mangle a carefully designed section — but you can still move it up or down with the block's toolbar. Untick the box to edit it again. See Working with Blocks.
Cloning a page
The ⧉ icon next to a page starts a new page from it — see Creating a Page.
Preview controls
👁️ Hide Preview gives the editor the whole width; ↗ Open in Window pops the preview into a separate resizable window that's ideal for checking different screen widths on a second monitor. The preview keeps its scroll position as you type.
Working from a shared folder
If your project lives on a shared drive or a synced folder (Dropbox, Google Drive, OneDrive), someone else might change a page while you have it open. WebHaste notices before it overwrites their work and asks: OK keeps your version and overwrites theirs, Cancel discards your changes in the editor and loads the newer version from disk. If you move on to another page while the question is still open, WebHaste saves a safety copy of your edit in .webhaste/backups/ so nothing is lost.
This protection covers pages and, when template editing is turned on, templates, stylesheets and scripts. It's a safety net, not a substitute for agreeing who's editing what.
Switching projects
The Recent Projects menu at the top of the window jumps between projects you've opened lately. Chrome occasionally asks you to reconnect access to a folder — it's a one-click browser security step.
Topics