Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created March 19, 2020 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/48f8026a7666822149b14e02b35fdfb9 to your computer and use it in GitHub Desktop.
Save bjoerntx/48f8026a7666822149b14e02b35fdfb9 to your computer and use it in GitHub Desktop.
TXTextControl.applicationFields.add(
TXTextControl.ApplicationFieldFormat.MSWord,
"MERGEFIELD",
"FieldText",
["FieldName"],
af => {
var highlightColor = "rgba(9, 165, 2, 0.3)";
var highlightMode = TXTextControl.HighlightMode.Always;
af.setHighlightColor(highlightColor);
af.setHighlightMode(highlightMode);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment