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:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Creates styled text from JSON made with Text.Style.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Text | 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
json | A JSON text or reference. |
Returns styled text or error.
Sample | JSON |
Some blue text with hex color | [{"colorHex":"0044FE","alpha":255,"text":"blue"}] |
Same blue text with red, green and blue. | [{"red":0,"green":68,"blue":254,"alpha":255,"text":"blue"}] |
Text in bold | [{"text":"Hello", "bold":true}] |
Text in 24pt | [{"text":"Hello", "size":24}] |
Text in Comic Sans font | [{"text":"Hello", "font":"Comic Sans MS"}] |
Hello underlined and World strike through | [{"text":"Hello", "underlined": true}, {"text": " "}, {"text":"World", "strikethrough": true}] |
Create styled text with JSON:
MBS( "Text.FromStyles"; "[{\"text\":\"Hello\", \"underlined\": true}, {\"text\": \" \"}, {\"text\":\"World\", \"strikethrough\": true}]")
Created 19th May 2021, last changed 19th May 2021
Text.FindBetween - Text.InvalidCharactersForEncoding
Feedback: Report problem or ask question.