PDA

View Full Version : Source code editor - Which is best?



JagDragon
September 3rd, 2008, 08:48 AM
Hey all,

I'm looking for a good source code editor to use under Ubuntu. I use Notepad++ under *******, and I'm looking for one under Linux that has all of the features that I need. I have already tried Bluefish editor, and didn't really like it at all, so I'm looking for alternatives. Here are the features I have found useful on Notepad++:

Very clean look - not much clutter
Tabbed editing
Syntax highlighting for

Batch scripts
Python
C/C++
PHP
HTML/XML
Javascript

Regular expression searching and replacing
Very fast and efficient

So, what is out there, and what is good? Thanks.

pmlxuser
September 3rd, 2008, 08:57 AM
if you like notepad ++ why dont you just install wine and then you can run it even in ubuntu.


$sudo apt-get install wine

download notepad ++
install using wine


$ wine notepad++.exe (whatever)


have you tried vi (of course this is very advanced and only advanced programmers prefer it.) so i would advice you that if you did not like bluefish just follow the above advice you will be happy with your editor and you will be happy in Ubuntu.

cabalas
September 3rd, 2008, 09:01 AM
This can be a dangerous question ;) it's a bit like asking what colour the bike shed should be.

For stock Ubuntu gEdit is a good editor which fulfills most of what you list there and comes installed by default. I believe the only thing it is really missing is the searching via regex which chances are there is a plugin which does it.

JagDragon
September 3rd, 2008, 09:06 AM
Thanks for the replies. I have been using vim for about 5 years now, I was just wanting something graphical and native to Linux. Where could I find plugins for gEdit?

I just got onto this thing called "scite", which uses the same "engine" as Notepad++, so I'm trialling that for a while. If any of you want to try it, just get it using apt-get.

roelpeeters
September 3rd, 2008, 09:15 AM
As said by cabalas, this is a very dangerous question. With the risk of starting a never-ending editor war ;-) I'd go with emacs. It has a learning curve that is a bit steeper than your usual Windows editor, but once you get the hang of it you ask yourself, how did you ever do all this before.

Emacs can be installed with the usual installation mantra:


sudo apt-get install emacs


Some of the features:

* progressive search
* regex search and replace
* regex alignment
* column copy and paste
* syntax highlighting for any imaginable language
* after compiler run, jump directly to the source and line containing the error
* split windows in any direction and synchronize the cursor between them
* and best of all: you can built anything you like into the editor

Emacs also has the following integrated:
* Shell
* Calender
* Calculator
* Directory & File Management
* mail reader
* news reader
* Psychologist (no kidding!)

- Roel.

leg
September 3rd, 2008, 09:44 AM
Try gedit with some plugins or have a look a Geany.

hyper_ch
September 3rd, 2008, 10:08 AM
emacs is a good operating system, it just lacks a decent editor ;)

there's many... open synaptic and search for editor...

annatar
September 3rd, 2008, 10:22 AM
Another good choice (at least to me) is Editra, which is written in Python with the WxWidgets toolkit.
All your requirements are fulfilled, and you can install/write plugins to extend the application. Plus it (claims to, never tried it) has 'vi keybinding support'.

One caveat is that you have to compile and install from source.

Editra's website : http://editra.org

Reiger
September 3rd, 2008, 10:45 AM
You can also use Kate; as of yet I haven't come across any killer features which would make me say 'Kate before Gedit' both appear to me to be essentially Linux equivalents (or is it the other way around) to Notepad++ on Windows.

Then again, I use(d) Gedit and use Kate like I use Notepad++.

ad_267
September 3rd, 2008, 10:48 AM
I second Gedit with the regex search and replace plugin (http://live.gnome.org/Gedit/Plugins) or Geany. They're both pretty good but you'll probably find there's one you prefer over the other.

SeanHodges
September 4th, 2008, 11:07 AM
GVim or Cream are good options if you come from a Vim background and want the best of both worlds...

Personally I use GVim, but I've heard good things about Cream.