hi,
is it possible to give the highlighted query a color like red? i only found the m-flag in the fmt-function and there is no possibility.
best regards
Astrid
There's no option to do this directly, but if there are no tags you wish preserved already in your text, you can use "%mbH" and <sandr> the resulting <B> and </B> tags into red:
I write the following into the script:
<fmtcp query "%mbH" $mmfmt><!-- setup hit markup -->
<$s = "<B>" "</B>">
<$r = "<FONT COLOR=red>" "</FONT>">
<sandr $s $r $ret>
<send $ret>
But it doesn´t work. Maybe I wrote this into the wrong section. Can yout tell me the section?
thanks
Can you tell me what the argument $txt means?
I can´t find it in my documentation.
<strfmt "%mbH" $query $txt>
<$exp = "<B>" "</B>">
<$replace = "<i>" "</i>">
<sandr $exp $replace $ret>
<send $ret>
Thanks
hi,
when i take your code it doesn´t work. In the source code of the webpage i get the error:
<!-- 015 /webinator/search-cms:530: Can't turn on markup: No query set with <fmtcp> -->
can you tell me whats wrong in my code?
thanks
Sounds like you're using <mm> somewhere but haven't called <fmtcp> to setup a query. If you're using the <strfmt> method you probably shouldn't be using <mm>.