Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1733  / 3 Years ago, fri, september 24, 2021, 4:28:45

Whenever I open a very large text file (I'm talking 100k lines or more), gedit's background color changes from white to black, which makes the black text almost impossible to read.


Here's a screenshot of a file with more than 400k lines as an example


Is this a bug with gedit? What can I do to stop it from changing to a black background?


More From » gedit

 Answers
2

First, graphical editors all have their limitations in handling very large text files. They will choke sooner or later as the number of lines increases. They will choke sooner or later when the lines become longer (try creating a very long single line in gedit).


Therefore, avoid having to deal with such large files for manual edits, and prefer to use dedicated tools to view or edit such large files.


Still, Gedit has come a long way in supporting opening and editing quite large files. For me, it opens a 180 000 lines text file without any issue. For larger text files, a blue dialog is implemented showing the progress. At that point, I also see the issue with the black screen. However, that issue appears not related directly to Gedit, but rather is related to limitations in the the graphical toolkit, GTK.


[#2088] Saturday, September 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cretanol

Total Points: 320
Total Questions: 99
Total Answers: 115

Location: Australia
Member since Sat, May 27, 2023
1 Year ago
cretanol questions
Fri, Dec 2, 22, 13:30, 1 Year ago
Thu, Dec 8, 22, 03:00, 1 Year ago
Mon, Aug 1, 22, 03:21, 2 Years ago
Sun, Apr 24, 22, 06:37, 2 Years ago
;