Flexible and extensible code editor