Basic construction of code editor