What’s new in version 6.1005

Key point: Diff notation for changes in preformat and improved pasting.

Diff in pre-formatted text

We’ve enhanced the role dialog to more accurately detect the language associated with each role and allow the use of diff notation alongside other programming languages.

The diff notation lets you highlight changes in pre-formatted text by using specific characters at the start of each line to indicate whether it has been inserted, deleted, modified, or left unchanged.

A + at the beginning of a line marks an insertion, while a - indicates a deletion. You can also use an exclamation mark (!) to flag a line as modified. Lines starting with a space are assumed to be unchanged.

You can combine the diff syntax with any other supported language. For example, you can specify the role as lang-diff-xml to use the diff syntax to mark differences and use XML syntax highlighting at the same time.

Use the diff notation in edit mode, as in the following example:

In view mode, the differences are highlighted:

This feature allows you to manually mark changes in pre-formatted text as part of the content, and operates independently from the compare function, which automatically detects differences throughout the content.

Improved pasting

We’ve fixed a number of issues when pasting content into the editor so that it is more reliable to paste content containing xrefs, transclusions, and pre-formatted text content.