So far my friend.. she wanted a input code that changes the colors for the first letter in every word and the rest of the word would be a diffent color. Well I tryed a few months before to get help here.. and didnt work out so well. Anywas I found out a way, only one problem. The code removes the same chrs as the first letter in the word sense I had to use $remove so that I can remove the first letter. I just woundern if anyone here knows how to help me.
ins {
%x = 1
var %in = $remove($1-,$chr(32))
while (%x <= $len(%in)) {
var %in.p = $gettok($1-,%x,32)
var %in.n = $left(%in.p,1)
var %in.n2 = %in.n2 13 $+ %in.n $+ 10 $+ $remove(%in.p,%in.n)
.inc %x
}
return %in.n2
}
It maybe not the best code in the world. But it does work up to the point of removing the same chrs as the first letter.
Example: Test
Anywas any help would be nice... sense I cant figure out how to make this stop that..