Hi all,
I want to change the colour of a string in some styled text.
As the string may be any string like "font", "size", etc. that appear
in html tags,
I use the following code that works but I'm not satisfied with it...
Any more elegant solution?
Thanks.
put the htmlText of fld "Result" i
Hi Eric
I dont see what's wrong...
Though you dont need to change the tags, you seem to
handle the rest
gracefully.
Though, i dont see what you want to change, this seems ok looking...
>replace pFind with numToChar(3) && numToChar(27) & quote \
> & the uPatternColor of this stack &
Hi Xavier,
Thanks Xavier,
You are almost right.
I prefer this formulation:
replace pFind with numToChar(3) && numToChar(27) & quote \
& the uPatternColor of this stack & quote & ">" & pFind \
& numToChar(244) in tText
Here I replaced "" with numToChar(244)
That's more consistent but
Recently,Eric Chatonet wrote:
> I want to change the colour of a string in some styled text.
> As the string may be any string like "font", "size", etc. that appear
> in html tags,
> I use the following code that works but I'm not satisfied with it...
> Any more elegant solution?
Are you modifyin
On 11/17/05 8:28 AM, "Eric Chatonet" <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> I want to change the colour of a string in some styled text.
> As the string may be any string like "font", "size", etc. that appear
> in html tags,
> I use the following code that works but I'm not satisfied with it...
Hi Scott,
Thanks for your interest.
It's Rev html, but styled one with tags that use the words font,
size, face and color.
When these words are the searched words too, here comes the problem...
In addition, the pattern can be a part of a word.
I found out that the method I used is very fast (2
17
> To: How to use Revolution
> Subject: Re: HTML issue
>
> Hi Scott,
>
> Thanks for your interest.
> It's Rev html, but styled one with tags that use the words
> font, size, face and color.
> When these words are the searched words too, here comes the problem..
Hi Ken,
Thank you.
Seems that your solution would change the first color definition that
is already present in the html code.
May be I misunderstand :-)
In my case, first there are hundred of occurrences and second, they
have not any color tag yet.
Best Regards from Paris,
Eric Chatonet.
Eric Chatonet wrote:
Hi all,
I want to change the colour of a string in some styled text.
As the string may be any string like "font", "size", etc. that appear
in html tags,
I use the following code that works but I'm not satisfied with it...
Any more elegant solution?
Thanks.
Some thoughts
Hi Alex,
Very interesting thoughts :-)
Above all about search and replace strings with the same length (I
remember a thread about that lately).
But there is still a problem of security:
It's the user who specifies the string and he can specify fa (then he
will be a musician :-) or nt (then w
On 11/17/05 2:52 PM, "Eric Chatonet" <[EMAIL PROTECTED]>
wrote:
> Hi Ken,
>
> Thank you.
> Seems that your solution would change the first color definition that
> is already present in the html code.
> May be I misunderstand :-)
> In my case, first there are hundred of occurrences and second, the
Hello,
I was thinking along similar lines as Alex:
>
> Basically what you are doing is
>a set of "replace"s to hide html tags
>the real replace
>a set of "replace"s to restore the html tags.
>
My procedure would be:
put numToChar(3) into sep
replace ">" with "<" & sep in tText
set
have you thought about "simply" changing the fields' text forecolor and
then outputing that to
html?
Im sure you have...
;))
[EMAIL PROTECTED] wrote on 17/11/2005 15:56:09:
> Hi Xavier,
>
> Thanks Xavier,
> You are almost right.
> I prefer this formulation:
>
>replace pFind with numToCha
13 matches
Mail list logo