Hi,Alexander,
maybe ,you can take a look into sharp develop code source..
the code editor can be reuse, it maybe will give you something you wanted.