LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-02-2009, 04:42 AM   #1
Arancaytar
LQ Newbie
 
Registered: Feb 2009
Posts: 13

Rep: Reputation: 1
gedit: Syntax highlighting slow for large files


When I edit a code file with more than a few hundred lines in gedit, it takes frustratingly long to write code early in the file. All the text after the cursor appears to get its highlighting refreshed synchronously, and my poor single-core, 512MB system is brought to its knees. I've taken to writing new code in a separate file and pasting it in later, or switching highlighting off entirely.

Is there some way I can make gedit refresh the syntax colors asynchronously, say after idling for a few seconds? This might speed up the process enormously.
 
Old 07-03-2009, 02:21 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Have you tried vim? That does syntax highlighting, macros, buffers etc etc.
 
Old 07-06-2009, 03:45 PM   #3
CSandman
Member
 
Registered: Mar 2007
Distribution: Fedora/SUSE/Debian/Knoppix
Posts: 34

Rep: Reputation: 16
A better question would be, have you tried Emacs? gedit to vim is crazy hard because of the 3 different modes paradigm shift. Emacs is a little easier to learn in that respect.
 
Old 07-06-2009, 07:16 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I'm definitely not getting into that religious war
 
Old 07-07-2009, 06:16 AM   #5
Arancaytar
LQ Newbie
 
Registered: Feb 2009
Posts: 13

Original Poster
Rep: Reputation: 1
I've actually been using vim for the past four years (without the syntax highlighting though and without really using most of the commands); found emacs a bit harder to get into because the documentation uses an unfamiliar terminology. I'll probably take the time to learn it too one of these days; knowing both can't hurt.

But thanks for reinforcing what I should have realized already - when it comes to performance, the terminal beats the GUI any time. It just takes some effort to learn the terse and powerful commands needed to do what is otherwise a few clicks in the toolbar away.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GEdit Default Highlighting joshfoulk Linux - Software 0 12-27-2007 04:31 PM
syntax highlighting in vi mehrots Linux - Software 10 07-16-2007 08:50 AM
Syntax highlighting in Gedit jriis Linux - Software 1 10-24-2005 06:16 AM
GEdit syntax highlighting for ruby dublinclontarf Programming 0 08-18-2004 01:19 PM
Is it possible that you can set up syntax highlighting for gedit? ICO Linux - General 3 12-18-2003 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration