How to use keyword expansion in a file?

Keyword expansion is a process that Dynamsoft SourceAnywhere Hosted uses to replace a keyword with meaningful information when you use the Check In and Add Files commands. If you add or check in a file that contains these keywords, Dynamsoft SourceAnywhere Hosted will look for these keywords and automatically replaces the space between a keyword and the subsequent dollar sign with the value you have specified.

To use keywords in a file, you must first have keyword expansion enabled by your database administrator. To do this, please follow these steps:

Step 1:

Open Server Manager -> Repositories -> Default -> Keyword Expansion File Types.

Step 2:

In the Keyword Expansion File Types window, click Add and enter the types of files in which you want keyword expansion to occur, for example, txt.

Step 3:

Tell your users to close and restart SourceAnywhere Hosted Client for the changes to take effect.

Afterwards, please add the desired keywords into your files. For example, you might place the following in a file:

$Revision: $

When you check in the file, Dynamsoft SourceAnywhere Hosted replaces the revision specification with:

$Revision: 3 $

The next time that you check in the file, the 3 is replaced by 4, and so on. Without running Dynamsoft SourceAnywhere Hosted, you can always look at the top of your file to see the version of your copy of the file.

To check all Dynamsoft SourceAnywhere Hosted keywords, please click here.