When you need to do a scripting interface, javascript is the natural choice of language since this is so widely used and there's so much help to get. At least that's the road that we've taken so I was a bit dissapointed to find it wasn't supported by xamSyntaxEditor. At the moment Ii'm using Avalon editor instead. Works pretty well, but is not so easy to use.