This is "the way" to make a Xinha. Read and follow it. NewbieGuide
Xinha Configuration Options
If you want to work on Xinha code, please adhere to the Style Guide
There are a bunch of event hooks that can be used from within plugins or the config that can be used to perform some action at specific events that happen in the editor.
Automatically generated documentation. Including reference for the configuration options and all public methods:
If you you want to dive even deeper in the world of Xinha, there's also a variant including the private methods here: