find text with formatting or styles
From
Martin =?UTF-8?Q?=CE=A4rautmann?=@21:1/5 to
All on Tue Apr 30 14:09:14 2019
Is there any chance to find which text part within a text is formatted?
You can add formatting with TextStyleAdd.
Example:
if(patterncount(text,"""")=2,
let(
[begin=position(text,"""",1,1),
end= position(text,"""",1,2),
substring=middle(text,begin+1,end-begin-1)],
left(text,begin) &
TextStyleAdd ( substring ; bold )&
middle(text,end,9999)),
text)
will change the text
the "second" word
to
the "*second*" word
The formatting condition here would remain available.
But how about a *formatted* text
the *second* word
where the formatting is a text option.
Is there any reverse function for a TextStyleAdd,
such as
get(TextStyled(text,bold) -> second
get(TextStyledPosition(text, bold)) -> 5
get(TextStyledLength (text,bold) -> 6
I still do use FMP 11
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)