console editors linux

Programming, for all ages and all languages.
Post Reply
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

console editors linux

Post 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
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post 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..)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Adek336
Member
Member
Posts: 129
Joined: Thu May 12, 2005 11:00 pm
Location: Kabaty, Warszawa
Contact:

Post by Adek336 »

I think I'll take a glance at them. Do they offer syntax highlighting or autoindentation?
User avatar
jhawthorn
Member
Member
Posts: 58
Joined: Sun Nov 26, 2006 4:06 pm
Location: Victoria, BC, Canada
Contact:

Post by jhawthorn »

nano, vi, and SciTE all have both syntax highlighting and autoindentation. Though it may be disabled by default.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post 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:
Last edited by Brynet-Inc on Fri Aug 28, 2015 8:46 pm, edited 2 times in total.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Post by Neo »

@Brynet: This is completely OT.
How does nano appear so transparent is that something done by Linux or by Nano itself?
Only Human
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post 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...
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Tyler
Member
Member
Posts: 514
Joined: Tue Nov 07, 2006 7:37 am
Location: York, England

Post 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
User avatar
jhawthorn
Member
Member
Posts: 58
Joined: Sun Nov 26, 2006 4:06 pm
Location: Victoria, BC, Canada
Contact:

Post 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
Last edited by jhawthorn on Sat Dec 30, 2006 12:36 am, edited 1 time in total.
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Post by earlz »

how is that transparent?
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

I like ed when being forced to edit things at the terminal... :shock:
Otherwise, if one has GTK, I use gedit.
C8H10N4O2 | #446691 | Trust the nodes.
TheQuux
Member
Member
Posts: 73
Joined: Sun Oct 22, 2006 6:49 pm

Post 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.
My project: Xenon
maddog39
Posts: 24
Joined: Fri Feb 02, 2007 7:32 pm
Location: New Hampshire, US

Post 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.
Post Reply