>>35
>>37

まったく知識はないのですが過去ログをヒントに

resIDStyle.insert(selector.replace("$", (i + 1), "g")
 ↓
resIDStyle.insert(selector.replace(/\$/g, (i + 1))

に変えたら色が付きました
これでいいのか分かりませんがとりあえず様子見ます
ありがとうございました