Chapter 127
Chapter 127
Multiple file support – this is the biggest change. The previous design allowed only one file to be opened at a time; now, it needs to be changed to allow multiple files to be opened simultaneously, switched using tabs. This involves a restructuring of the data structure. Previously, the file content was stored as a simple string; now, it needs to be changed to an array, with each element storing the content of one file.
He wrote all night, until one o'clock in the morning, and still hadn't finished.
Cheng Yuxin knocked on the door three times. The first two times he said "right away," but the third time he just pushed the door open and came in.
"Lin Feng, it's one o'clock."
Lin Feng turned to look at her.
Cheng Yuxin stood at the door, wearing pajamas, her hair disheveled, her eyes narrowed to slits with sleep.
I'll write more tomorrow. Time for bed.
Lin Feng's heart softened when he saw her.
"Okay. Coming right away."
He saved the code and shut down the computer.
Cheng Yuxin stood at the door and waited for him to turn off his phone before turning back to her room.
Lin Feng lay on the bed, staring at the ceiling.
My mind is still filled with code.
Should we use a list or an array as the data structure for supporting multiple files? How should we handle tab switching events? How should we release memory when closing a file?
He rolled over.
These questions swirled in my mind for a long time.
Finally, I don't know when, I fell asleep.
Late March.
CodeLight v0.4 has been released.
It supports multiple file tabs, supports displaying line and column numbers in the status bar, adds Pascal syntax highlighting, and offers selectable font sizes—although there are only three options: large, medium, and small, it's sufficient.
Sales increased slightly. Twelve tickets were sold in a week.
Feedback has increased. Some say it works well, some say it's just average, and some ask if it can be sold in other cities.
Lin Feng began to think: How can we sell the software to places outside of Beichuan?
He remembered the GameGuardian (GG) feature in Computerworld. He'd used it before to sell localized software, and it worked well. Now he could use it again to sell CodeLight.
He wrote a GG (Google) caption:
CodeLight – A text editor for programmers. Features include syntax highlighting, multiple file tags, and regular expression search and replace. Supports C, C++, BASIC, and Pascal. Only 20 RMB (registered version). A trial version is available at the New World Computer Room in Beichuan City.
He read through the document, made a few changes, put it in an envelope, and sent it to Computerworld.
The fee for the manuscript is fifty yuan, which will be deducted from the royalties.
After mailing the letter, he stood at the post office entrance, looking out at the street.
The sun was shining brightly, making the asphalt road gleam. People were coming and going on the street: middle-aged people pushing bicycles, elderly people holding children's hands, and students in school uniforms.
He suddenly remembered his past life.
In his past life, he had also written software, encountered game crashes, and waited for user feedback.
But at that time, he was alone in his wheelchair, and the only light in the room came from the computer screen.
It's different now.
Now Cheng Yuxin warms milk for him, Liu Jian calls him master, Sun Jianguo teaches him to play basketball, and Zhou Jianguo accompanies him to practice shooting.
Now there's someone.
He smiled and walked towards the bus stop.
April has arrived.
Around the time of Qingming Festival, it rained for several days in Beichuan. It was a light drizzle, not heavy, but persistent. The air was damp, and clothes left to dry on the balcony wouldn't come dry for two days. The ground was always wet, making a crunching sound when you stepped on it.
Lin Feng still gets up at four in the morning every day to practice basketball. On rainy days, he practices dribbling in the stairwell—there's a small open space in the stairwell of the apartment building, just enough for him to dribble in place. The ball hits the concrete floor, the sound echoing and buzzing in the stairwell like thunder.
pdf-ebookys