Brian Dunning's FileMaker Custom Functions

HiliteMentions ( text ; r ; g ; b )

Adds a highlight to @mention tags within text.

  Be the first to rate this function Log in to vote

Richard Dyce   Richard Dyce - Show more from this author
Dyce & Sons Ltd.

Share on Facebook Share on Twitter

  Sample input:
HiliteMentions ( "A note for @mm ok? @gg." ; 102; 175; 255 )
  Sample output:
"A note for _@mm_ ok? _@gg_." -- where text between underscores is highlighted

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Uses LeftWords to ensure @mentions shouldn't include punctuation marks. Exception to note: @big.word is treated as a complete mention. The function is recursive, but the stack should not grow beyond the total number of @ symbols in the string.



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: