Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Adds line numbers to text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Text | 8.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Text | The text to process. | "Hello World" | |
StyleTemplate | The styled text to use as template for line numbers. We only use style for the nubers and text is ignored. If empty, this parameter is ignored. |
TextFont("test"; "Courier"; "") | Optional |
Delimiter | The optional delimiter. Default are two space characters. |
": " | Optional |
Prefix | Available in MBS FileMaker Plugin 10.3 or newer. The prefix to put before the number. |
Optional |
Returns text or error.
Format, colorize and apply line numbers:
MBS( "Text.AddLineNumbers";
// colorize it
MBS("JSON.Colorize";
// format before colorize
MBS( "JSON.Format"; JSON Input)
);
// define which style to use for numbers
TextColor (
TextFont ( " "; "Courier" );
RGB ( 0 ; 0 ; 255 )
)
)
Add <> around numbers:
MBS( "Text.AddLineNumbers"; "Hello¶World¶Test"; ""; "> "; "<" )
This function checks for a license.
Created 27th May 2018, last changed 1st July 2020