LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-05-2003, 09:34 PM   #1
insom
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Good Syntax Highlighting program?


Hey all, I am a newbie to linux, running mandrake9.

I was wondering what you all use for programming under linux. is there some good text editor for programmers that does all the fancy syntax colouring and stuff? I really only need it to do java and C.

Also, how would I install this? so far I have only had experience installing stuff with .bin files and .rpm files.

Thanks!
 
Old 09-05-2003, 10:27 PM   #2
vanquisher
Member
 
Registered: Aug 2003
Location: Hyderabad, India
Posts: 126

Rep: Reputation: 15
Re: Good Syntax Highlighting program?

Quote:
Originally posted by insom
Hey all, I am a newbie to linux, running mandrake9.

I was wondering what you all use for programming under linux. is there some good text editor for programmers that does all the fancy syntax colouring and stuff? I really only need it to do java and C.

Also, how would I install this? so far I have only had experience installing stuff with .bin files and .rpm files.

Thanks!
You get the editor VIM...
%vim filename

It supports syntax highlighting for a large variety of languages, C,CPP, PERL, Python, Java, HTML etc etc. It comes under every standard distro and u don't have to install any additional .rpms and stuff. try man vim or get some good tutorials, 'cos vim is damn powerful.
 
Old 09-05-2003, 11:37 PM   #3
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Definitely vim.
 
Old 09-06-2003, 01:12 AM   #4
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
Don't listen to vanquisher, as vim is just a text editor. If you are serious about programming, use emacs. It is not only an editor, but also an IDE for almost all languages you know and languages you have not even heard of. It will be a little difficult to learn at first, but the result will be worth it. Try the emacs tutorial that comes with emacs itself to familiarize yourself.
 
Old 09-06-2003, 01:31 AM   #5
cludwin
Member
 
Registered: Feb 2002
Distribution: Slack
Posts: 50

Rep: Reputation: 16
VIM
 
Old 09-06-2003, 05:09 AM   #6
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
Quote:
as vim is just a text editor.
that is one of the most absurd statements i have ever heard. just code folding alone(a feature emacs lacks) is enough to show vim is way more than just a text editor, i also think you'll find that it has more support for different languages/files than emacs has but i may be wrong there.

insom: both vim and emacs are perfectly acceptable and both very capable fully fledged ide's, they can both be treated as simple editors if thats all you want from them. i would make the choice based on whether you can touchtype or not, if you can vim will be better for you, if you cant then emacs will. as long as you avoid those awful ide's like kdevelop you'll be fine.

oh and they should be installed already, im pretty sure they come with a normal install, if not ther'll be rpm's on your disk, they dont have any weird/wacky dependancies so they should install ok.

Last edited by kev82; 09-06-2003 at 05:11 AM.
 
Old 09-06-2003, 10:07 AM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I agree with kev82.

If you are looking for a simple GUI text editor with highlighting then you can't really go too far wrong with "kate" either.
 
Old 09-06-2003, 11:01 AM   #8
ezyeric
LQ Newbie
 
Registered: Aug 2003
Location: MI
Distribution: Mandrake 9.1
Posts: 2

Rep: Reputation: 0
I like Kwrite it has highlighting and its a normal X editor and not old console one. Pretty much it wont take you a long time to figure it out, it might take you a lil while to figure out VI or Emacs.
 
Old 09-06-2003, 12:33 PM   #9
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
"Vim is just a text editor" in much the same way as "Earth is just a ball of rock."
 
Old 09-07-2003, 12:57 PM   #10
eric.r.turner
Member
 
Registered: Aug 2003
Location: Planet Earth
Distribution: Linux Mint
Posts: 216

Rep: Reputation: 31
I like emacs for its syntax coloring, parenthesis/braces matching, automatic code indenting/formatting, and the ability to compile and debug from within emacs. It really is an IDE!

However, the best way to find out which editor is best for you is to spend some time programming in each of them. Plus, it's good to know how to use the other editors in case you need to some day. For example, there are times when I'm working on a Unix box that doesn't have emacs but does have vi. Though I prefer emacs, I know enough about vi to get my work done.
 
Old 09-09-2003, 05:41 PM   #11
insom
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
thanks all, I have tried out all of those now, and they are really helpful, thanks!
 
  


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
Syntax highlighting in Gedit jriis Linux - Software 1 10-24-2005 06:16 AM
syntax highlighting rohr Programming 3 07-06-2005 06:07 AM
vim syntax highlighting MiniMe001 Linux - General 2 06-19-2005 11:08 AM
xemacs syntax highlighting jclark00001 Linux - Software 2 04-13-2003 04:40 PM
Vim syntax highlighting NSKL Linux - Software 2 11-09-2002 02:39 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:41 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