HTML issue

2005-11-17 Thread Eric Chatonet
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

Re: HTML issue

2005-11-17 Thread xavier . bury
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 &

Re: HTML issue

2005-11-17 Thread Eric Chatonet
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

Re: HTML issue

2005-11-17 Thread Scott Rossi
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

Re: HTML issue

2005-11-17 Thread Ken Ray
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...

Re: HTML issue

2005-11-17 Thread Eric Chatonet
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

RE: HTML issue

2005-11-17 Thread MisterX
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..

Re: HTML issue

2005-11-17 Thread Eric Chatonet
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.

Re: HTML issue

2005-11-17 Thread Alex Tweedly
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

Re: HTML issue

2005-11-17 Thread Eric Chatonet
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

Re: HTML issue

2005-11-17 Thread Ken Ray
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

AW: HTML issue

2005-11-17 Thread Thomas Fischer
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

Re: HTML issue

2005-11-23 Thread xavier . bury
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