Power Feature: Custom Mappings

Mappings are defined in your .dpr file.

 doco.mapping.<searchExpression>=<replaceExpression>

You need to be reasonably technically minded to be able to understand regex syntax.

Here is an example custom mapping.

 # A custom mapping (this is a dictionary.com lookup)
 doco.mapping.(\\s)\\(d\\)(.+?)\\(d\\)\\s=$1"$2"$1{http://dictionary.reference.com/search?q=$2}$1

You would use it like this

 ..which was a nice (d)seque(d) from the previous topic..

While we're about it, you might as well see what segue means (this example uses the same mapping).

Note that the <searchExpression> is subject to some Java Properties loading escaping rules.

It is very likely that you will need to tinker with any custom mapping a few times before you get it working properly.