Implement code editor with line numbers