Page 1 of 1

console editors linux

Posted: Sat Dec 23, 2006 8:46 am
by Adek336
hi guys
i've checked the osfaq and the article on editors is absent.
So this thread might even aid the article ;p

I need a standard editor, one of those that are always included in a distribution for console under linux. I intend to use it for general programming. I've heard some names, pico,nano,vim,emacs, are they cool? Are there some neat tricks at using them?
Cheers

Posted: Sat Dec 23, 2006 8:53 am
by Brynet-Inc
GNU nano is alright...It's a clone of pico (Which was a text editor that was included with a program named pine..)

if you want to have a powerful editor, vi/vim is usually recommended, But it's not exactly easy to learn for a novice.

If you install X, I'd recommended SciTE (It includes code colouring for various languages etc..)

Posted: Sat Dec 23, 2006 9:51 am
by Adek336
I think I'll take a glance at them. Do they offer syntax highlighting or autoindentation?

Posted: Sat Dec 23, 2006 5:08 pm
by jhawthorn
nano, vi, and SciTE all have both syntax highlighting and autoindentation. Though it may be disabled by default.

Posted: Sat Dec 23, 2006 5:53 pm
by Brynet-Inc
Here is a few screenshots on how SciTE's syntax colouring is:

(Click to make larger...)
EDIT: Removed 2015: Imageshack replaced all links with spam.
Here is one of my older p2 desktops, With SciTE open on a silly program I wrote.

(Click to make larger...)
EDIT: Removed 2015: Imageshack replaced all links with spam.
As you can see, It has syntax colouring for various languages..

(Click to make larger...)
EDIT: Removed 2015: Imageshack replaced all links with spam.
It also has other various GUI views etc.. :wink:

I know, You wanted a console editor.. sorry :oops:

Here is what nano looks like with colour:
(Click to make larger...)
EDIT: Removed 2015: Imageshack replaced all links with spam.
Sorry for the naming bit, accidentally named the file SciTE lol..

There are a few more steps with nano though, You need to configure it with --enable-color and add templates for various languages into your .nanorc file.

http://wiki.linuxhelp.net/index.php/Nan ... ghlighting

The above has some templates :wink:

Posted: Tue Dec 26, 2006 6:17 am
by Neo
@Brynet: This is completely OT.
How does nano appear so transparent is that something done by Linux or by Nano itself?

Posted: Tue Dec 26, 2006 7:25 am
by Brynet-Inc
What is OT?

I'm not using Linux.. I'm using OpenBSD.:roll:

The transparent effect is done by the terminal application aterm..

Sadly it's only pseudo transparency...

Posted: Tue Dec 26, 2006 10:39 pm
by Tyler
Brynet-Inc wrote:What is OT?

I'm not using Linux.. I'm using OpenBSD.:roll:

The transparent effect is done by the terminal application aterm..

Sadly it's only pseudo transparency...
OT - Off Topic, i would assume

Posted: Tue Dec 26, 2006 11:57 pm
by jhawthorn
Had to show off full transparency:
Image

And yes, the little smiley under the window is still animated!!! It's really too bad that XGL is too unstable and distracting for my everyday use.

EDIT: This screenshot is using XGL, Beryl (http://www.beryl-project.org/), and gnome-terminal

Posted: Wed Dec 27, 2006 12:02 pm
by earlz
how is that transparent?

Posted: Thu Jan 04, 2007 4:11 pm
by Alboin
I like ed when being forced to edit things at the terminal... :shock:
Otherwise, if one has GTK, I use gedit.

Posted: Thu Feb 15, 2007 7:03 pm
by TheQuux
Alboin wrote:I like ed when being forced to edit things at the terminal... :shock:
Otherwise, if one has GTK, I use gedit.
Hmm... if somebody were to write a GED (GTK-ed), I wonder if anybody would use it.

Posted: Mon Feb 19, 2007 6:44 pm
by maddog39
I use ubuntu so as far as editors go I usually use some sort of lightweight IDE like geany. But I also really like gedit and gvim. I have two screenshots:

gvim: http://www.dximages.uni.cc/files/1/scre ... x/gvim.png

geany: http://www.dximages.uni.cc/files/1/scre ... /geany.png

[Edit]
Forgot to mention that gvim is a GTK+ interface for vim.