Skip to content

Editor

When writing in the WonderPen editor, following skills may help users increasing their efficiency.

There is a toolbar at the top of the editor, and the functions of each icon are shown in the following figure:

The left and right arrows on the left represent back and forward in the document access history, similar to the browser’s back and forward buttons.

The asterisk button on the right indicates starring (favorites), and the starred documents will appear in the Star panel (favorites panel) on the left for quick access.

The up and down arrows on the right represent switching up and down in the directory tree, that is, accessing the previous or next document in the directory tree.

The editor split button on the far right, after clicking, will split the editor into two, see the editor split instructions for details.

Move the mouse to the T-shirt icon in the lower right corner of the editor, and the editor style setting panel will pop up, as shown in the following figure:

Editor Settings

In this panel, you can adjust the editor’s font, line height, margin and other styles to make the editor more in line with your habits.

The Letter Spacing option adjusts the distance between characters. If the text feels too dense, or a particular font looks cramped on screen, you can increase the letter spacing a little.

Horizontal Line Background

You can also add a horizontal background to the editor, as shown above. It should be noted that when adding a horizontal line background, it is usually necessary to adjust the Line Height slightly larger, otherwise the text may look a little crowded.

With text selected, press Ctrl + B / Ctrl + I ( + B / + I on macOS) to toggle bold or italic.

If no text is selected, pressing these shortcuts enters the corresponding input mode, and any text you type afterwards is automatically styled as bold or italic. The editor shows a small icon near the cursor to indicate the current mode. Pressing the same shortcut again, moving the cursor outside the styled range, or letting the editor lose focus exits the mode.

Bold

When you insert a code block in the editor, a toolbar appears at the upper-right of the block. You can use it to pick the code language, copy the code, toggle line wrapping, or delete the entire block.

Code Block

If a language is set on a code block, the editor renders syntax highlighting, and the highlighting is preserved when exporting to HTML, PDF, image, and other formats.

Code blocks remember the language and line-wrap preference you last picked. WonderPen will reuse those settings for the next code block you create, to reduce repetitive setup.

Type the quick-menu trigger character in the editor and pick Table from the menu to insert a table. By default the inserted table is 3 columns × 3 rows, with the first row as the header.

When the cursor is inside a table, a floating toolbar appears nearby. You can use it to:

  • Insert a new column to the left or right of the current column
  • Delete the current column
  • Insert a new row above or below the current row
  • Delete the current row
  • Merge or split cells
  • Delete the entire table

You can also move the mouse to the left or top edge of the table to reveal drag handles, then drag a whole row or column to reorder it.

Sometimes, when we write, we need to refer to another document in the directory tree, or another part of the current document, or we need to refer to some information in the whiteboard, then we can split the editor to two parts.

Click the split icon in the upper right corner of the editor, or use the shortcut Shift + Ctrl + \ (Shift + + \ for macOS), you can split the editor into two parts. The currently active editor toolbar will be highlighted.

Split the Editor

Click the split icon again or press the shortcut key to close the inactive editor and return to the normal state.

In the editor split state, one of the editors can be set as pinned, as shown in the following figure:

Pin an Editor

Only one editor can be pinned at a time, and the pinned editor will not change with switching documents, but will always keep the current content for easy reference when writing.