LinuxQuestions.org
Review your favorite Linux distribution.
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 01-23-2004, 11:21 AM   #1
Boomba
Member
 
Registered: Jan 2004
Distribution: Fedora Core 4
Posts: 57

Rep: Reputation: 15
programing editor features


hi

i'm new to linux but i've programmed under windows alot..and I'm used to the good old colour highlighting of visul studio and textpad...is there a way to make my text editor (gedit) in linux to do the same thing? if not... is there a good text editor out there that will?

thanx in advance
Boomba,
 
Old 01-23-2004, 11:40 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I don't have gedit so I am not sure how it works. But I do know that vim, emacs, kate, and numerous other editors will do syntax highlighting for many different programming languages. Kate is probably the most similar to what you are used to using out of those I listed. Vi and Emacs are very powerful and are both great editors but the commands take some getting used to.
 
Old 01-23-2004, 12:04 PM   #3
ronware
Member
 
Registered: Dec 2003
Distribution: Frugalware
Posts: 39

Rep: Reputation: 15
Re: programing editor features

Quote:
Originally posted by Boomba
hi

i'm new to linux but i've programmed under windows alot..and I'm used to the good old colour highlighting of visul studio and textpad...is there a way to make my text editor (gedit) in linux to do the same thing? if not... is there a good text editor out there that will?

thanx in advance
Boomba,
vim, specifically 'gvim'. It takes some getting used-to, but it is fast and very capable, and has syntax highlighting, folding, etc. etc.
 
Old 01-23-2004, 06:54 PM   #4
amos
Member
 
Registered: Dec 2002
Location: Bolton, UK
Distribution: Kubuntu
Posts: 224

Rep: Reputation: 30
I've just tried it and there seem to be two ways of getting gedit to highlight your source code for instance if you were writing in c++:

1. Start gedit, save the new blank document as myprog.cpp and the highlighting will automatically come into force when you start typing (this is how it works in kate, kwrite and various other X-based editors).

Or

2. Start gedit, click on View/Highlight Mode/Sources and select c++. When you start typing the text should be highlighted.

Cheers
Amos
 
Old 01-23-2004, 08:11 PM   #5
Boomba
Member
 
Registered: Jan 2004
Distribution: Fedora Core 4
Posts: 57

Original Poster
Rep: Reputation: 15
both of those didnt work I dont even have a "Highlight Mode" feature in my gedit...does that mean I should get the newest version?..if so..how do i get it..and how do I install it? I have yet to install something that is not an .rpm file successfully on Red Hat.

boomba,
 
Old 01-24-2004, 10:47 AM   #6
amos
Member
 
Registered: Dec 2002
Location: Bolton, UK
Distribution: Kubuntu
Posts: 224

Rep: Reputation: 30
The version I tried it with was 2.4.0, it was installed automatically when I installed Slack 9.1.

http://gedit.sourceforge.net/download.php

seems to suggest that you look for a Red Hat Binary from Red Hat, but if you're already using a version which came with RH9 then I'm not sure whether there'll be a newer one.

Maybe its time to bite the bullet and learn the "./configure, make, make install (as su)" dance for compiling and installing software from source. Its very rare that I actually use a package manager to install anything.

Cheers
Amos
 
Old 01-25-2004, 12:58 PM   #7
Boomba
Member
 
Registered: Jan 2004
Distribution: Fedora Core 4
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
Maybe its time to bite the bullet and learn the "./configure, make, make install (as su)" dance for compiling and installing software from source. Its very rare that I actually use a package manager to install anything.
belive me I would love to learn it..I've been trying to figure it out while getting help from this board on it as well..but I've had no luck...i'm having alot of trouble installing manually..once I try to type in the cammand "make" as super user it always gives me an error...can you give me instructions on how to install the specific gedit 2.4 file? I would really apreciate it

thanx in advance
Boomba

Last edited by Boomba; 01-25-2004 at 01:30 PM.
 
Old 01-25-2004, 02:28 PM   #8
amos
Member
 
Registered: Dec 2002
Location: Bolton, UK
Distribution: Kubuntu
Posts: 224

Rep: Reputation: 30
I can give you generic instructions.

1. Get the package you want as a tarball

e.g. somepack-1.2.3.tar.gz

or somepack-1.2.3.tar.bz2

2. I have a Directory called downloads in my home directory which I use for doing this sort of thing, place the tarball there, startup a shell and cd into the directory which holds the tarball (on my system /home/amos/downloads)

3. For the package ending tar.gz type (at the shell prompt):

tar zxvf somepack-1.2.3.tar.gz

for the package ending tar.bz2 type:

tar jxvf somepack-1.2.3.tar.bz2

Both of these commands will extract the files from the zipped tarball, usually into a new directory called somepack-1.2.3 or something similar. I now usually remove the original tarball using konqueror and at the shell prompt cd into the new directory. At the same time I will usually enter the new directory in konqueror as well, in order to read any READMEs or INSTALLs which the package authors have included. If they are just generic then I move on to the compiling bit (you may have other work to do first eg installing any dependencies).

4. When you are ready type:

./configure

at the command prompt. This step sets things up for your system, checking for missing packages, finding where libraries are etc. If all goes well (ie you can't see any error messages) proceed to the next step. If there are problems you may have to install new packages or tell the configure script where to find specific packages look at the output of ./configure --help if this is the case.

5. Once configure has run type the following:

make

This builds the binaries according to the options provided/found in the configure script. If configure has finished alright then this will usually work too (It may take some time, depending on your systems resources, kdevelop takes me between 1 and 2 hours or longer to compile). So far we have only been working in our own /home/amos/downloads/somepack-1.2.3/ directory, and hence we have not needed to be the su.

6. Become the super user by typing:

su

type in your password. You should still be in the same directory. Now type:

make install

this installs the binaries where they need to be e. /bin, /usr/bin, /usr/local/bin.

If this is in your path then you can access the binary by typing its name as a normal user at the command prompt.

Hope this helps

Cheers
Amos
 
  


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
Features of KDE vs. Features of Gnome donlinux Linux - Newbie 17 12-04-2005 12:01 PM
Need a C++ editor with good page layout and printout formatting features LaptopLinux Linux - Software 6 10-24-2004 08:08 PM
Programing in Linux jimbob1989 Programming 1 10-10-2004 10:53 AM
a good console text editor for programing/debuging? zovres Programming 1 09-21-2004 02:23 AM
XHTML editor with clipping features and validator? tijs Linux - Software 1 08-13-2004 05:53 AM

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

All times are GMT -5. The time now is 11:43 AM.

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