Just fyi, simple powershell
Code
$text = Read-Host "Gieb text"
[int]$left = $text.Length
[int]$length = $text.Length
$end = '[/COLOR]'
$pre = '[COLOR=green]','[COLOR=red]','[COLOR=blue]','[COLOR=purple]','[COLOR=orange]','[COLOR=grey]','[COLOR=yellow]'
while ($left -gt 0) {
$left = $left - 1
$color = $left % 7
$text = $text.Insert($left+1,$end)
$text = $text.Insert($left,$pre[$color])
}
$text | clip