# Copy Content

You can make copies of text, single elements, and also entire structures in Paligo. This can make it easier and quicker to create content that is similar to content that already exists. Instead of creating the content from scratch, you can make a copy and then edit the copy to meet your requirements. This is similar to how you might work in word processors and text editors.

But Paligo also has content reuse features, where you can reuse the same piece of content (block element) wherever you need it. So before you start copying your content, you should consider which approach is best for you, copying or content reuse. If you intend to have the exact same content in multiple places, it is usually better to reuse the content rather than make copies. To find out more, see Content Reuse.

You can use the following keyboard shortcuts for copying and inserting content:

Command

Description

Windows

Mac

Copy (element)

Copies the selected element.

Alt C

Option ⌥ C

Copy (text)

Copies the highlighted text, not the entire element.

Ctrl C

Command ⌘ C

Cut (element)

Removes the selected element and copies it to the clipboard.

Alt X

Option ⌥ X

Cut (text)

Removes the highlighted text, not the entire element, and copies it to the clipboard.

Ctrl X

Command ⌘ X

Insert

Inserts a copy as a new element, with its own ID.

Alt V

Option ⌥ V

Insert as reuse

Inserts copy as a reused element.

Any changes you make to the "copy" will also affect the original as they have the same ID.

Alt Shift V

Option ⌥ Shift ⇧ V

To copy parts of the text inside an element, such as words in a paragraph, select the words and use a keyboard shortcut to copy and paste.

• On Windows, use Ctrl and C to copy and Ctrl and V to insert.

• On Mac, use Command ⌘ and C and Command ⌘ and V.

When you copy text, there is no reuse. Reuse only applies when you copy an entire element.

You can use the XML Tree View to make a copy of an element in a topic. Paligo adds the copy directly after the original version, and then you can move the copy in the structure if needed.

When you copy an element, Paligo makes a duplicate of:

• The element

• Any text or other content inside the element

• Any "child" elements inside the element

• Any text or other content from inside the "child" elements.

All of the copies are new versions that reproduce the content and structure of the original versions. They have unique IDs and so are separate to the original versions. If you use the XML Tree View to make a copy, and then you edit the copy, the changes will only apply to the copy. They will not apply to the original version (the XML Tree View copy is not content reuse).

To copy an element using the XML Tree View:

1. Open a topic in the editor and select the XML Tree View in the side panel.

The XML Tree View shows the main elements in your topic as blue boxes, arranged in a hierarchy that matches the structure. Any box with a white cross has lower level content. If you select the white cross icon, the tree expands to show the lower levels.

2. Expand the hierarchy until you can see the element that you want to copy.

3. Position the cursor over the element you want to copy.

Paligo displays a copy icon and a delete icon.

### Note

For tables, you can only copy the table element or a table row (tr).

4. Select the copy icon (overlapping files).

Paligo creates a copy of the selected element. It places the copy directly after the element you selected.

### Note

If you copy an element that has elements inside it ("children"), Paligo will make copies of the "child" elements too. For example, if you copy a procedure with three steps, Paligo will create a duplicate procedure that also has three steps. The procedures and steps all have unique IDs so that if you change them, they do not affect the original version.

5. If you need to move the copy to a new position in the structure, select it in the XML Tree View and drag it to the new position.

You can use the Element Structure Menu to create a copy of an element. You can then add the copy to the same topic or a different topic, either as a unique piece of content or as a reused element.

To use the Element Structure Menu to copy content:

1. Click inside the block element you want to cut or copy.

2. Select the same element in the Element Structure Menu. For example, if you wanted to copy a paragraph, select para#text.

3. Select Copy.

Paligo creates a copy of the element. The copy is stored in your computer's clipboard so that you can paste it into your content.

4. Place the cursor in the position where you want to add the copied/cut element. It is important that you position the cursor at a position where the element is valid. For example, if you have cut or copied a listitem, you can place the cursor in an itemizedlist.

### Note

If you want to add the copy to a different topic, open the other topic in the editor. But make sure you do not copy anything else to your computer's clipboard or you will lose the copy.

5. Select the element in the Element Structure Menu. (The element for the position in the structure that you selected in the previous step).

6. Select one of the following options:

• Paste before

Paligo will reuse the original content above the selected position. If you edit this "copy", your changes will also affect the original too.

• Paste after

Paligo will reuse the original content below the selected position. If you edit this "copy", your changes will also affect the original too.

• Insert

Paligo will insert the copy into the selected element. The copy has a unique ID. If you make changes to it, those changes will not affect the original version.

• Insert as reuse

Paligo will reuse the original content inside the selected element. If you edit this "copy", your changes will also affect the original.

### Note

The Insert and Insert as reuse option is only shown if the copied element is valid in the new position. For example, if you copy a step element and try to insert it into a para element, Paligo will not show the Insert option. (A step is not valid inside a paragraph).

7. Select Save.