Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Notepad++ on Windows 7 and I want to know if there is a good substitution for it on Ubuntu.

I want something that is good for editing html files.

share|improve this question
    
There is GEdit (default editor for Gnome) and Kate (default one for KDE). These are very user friendly, I don't know if they are "html friendly" enough, though. Nonetheless, there are many alternatives (Linux is full of choice) which are targeted specifically towards web development (google ubuntu html editors). You can also use Oracle's Eclipse (see here). – edwin Jun 28 '13 at 17:27
    
gedit works fine for this. – Thomas W. Jun 28 '13 at 17:32
    
possible duplicate of Basic Web Development IDE/Editor like Dreamweaver? – Rrj Jun 28 '13 at 17:36
    
Thanks a lot, for those who wants to know how to install "Sublime" you can easly follow the different steps explain here: how2 INstall Sublime c u – Orsius Apr 17 '14 at 9:47

10 Answers 10

Actually you can install Notepad++ by installing wine first:

sudo apt-get update; sudo apt-get install wine

But some good alternatives are:

  1. Vim
  2. Emacs
  3. Geany
  4. kate (in KDE, running in unity with the installation of the proper KDE dependences)
  5. Sublime (free, unlimited trial version/ or $70.00 US Dollars)
  6. GEdit
  7. Komodo Edit (in KDE)
  8. Editra

Of these, Geany and GEdit are my favorites, but it depends on your needs. If you are looking for something more complex, there is the Aptana Studio which I mentioned in detail as an answer in this question: Basic Web Development IDE/Editor like Dreamweaver?

Good luck!

share|improve this answer
    
Sublime has a free, unlimited trial version. – David Foerster Sep 25 '13 at 12:33
    
Yeah. Sublime is by far my favorite. The popups can be a bit annoying if your using the trial, but you don't lose anything for doing it. – Dillmo Oct 4 '13 at 10:19
    
Sublime gets my vote, also. It's too bad that there's no notepad++ for Linux (or OS X). Sublime is worth every of the 70 dollars. – Yet Another User Nov 18 '13 at 18:43
1  
Geany is at least having the same editor widget as Notepad++ is having ;) – frlan Apr 17 '14 at 9:53
2  
My vote goes for emacs. Since it is fully scriptable (Lisp) there exist extensions for nearly everything you can think of. Only drawback: You have to learn some of the keyboard shortcuts, otherwise emacs will drive you crazy. – soulsource May 14 '14 at 8:42

It is actually possible to install Notepad++ on Ubuntu. Just run the following commands:

sudo apt-get update
sudo apt-get install wine

Then, download the Notepad++ Windows installer, right click it, and select Open With -> Wine Windows Program Loader. Follow the typical installation process and you should be able to open Notepad++ from your Dash.

share|improve this answer
1  
Really this is good solution you can know more about wine winehq.org/about – Nanhe Kumar Oct 4 '13 at 8:08
    
Thanks! worked perfectly! – m4l490n May 6 '15 at 6:21
    
this works so well, so easily - I wish I'd have know how easy it was years ago ! – Dave Amphlett Aug 13 '15 at 15:51

Thanks to the work of Daniel Di Sardi there is a native version of Notepad++ for Linux:

Notepadqq is a native port of Notepad++ to Linux.

notepadqq screenshot on linux

It has a nice PPA (the home page says it's for 14.04, but the launchpad has versions from Utopic to Wily), so you can install easily by

sudo add-apt-repository ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqq

As another option, SciTe is based on the same "editing building block" of Notepad++, Scintilla.

share|improve this answer
1  
looks pretty good. missing feature: auto-saving and thus, auto-loading the (unsaved) files from last session (pretty new feature in n++, yet extremely useful) – Blauhirn Mar 24 at 22:19

Three other alternatives:

  1. Gedit
  2. Bluefish (Ubuntu Software Center)
  3. Aptana Studio 3

Bluefish is very good for HTML and CSS in my opinion.

share|improve this answer

Other alternatives which have rich features and very handy and easy-to-use macro features:

KKEdit

http://www.webupd8.org/2014/03/kkedit-text-editor-inspired-by-bbedit.html

http://gtk-apps.org/content/show.php/KKEdit?content=158161

  • The usual source view options, split-view, line wrap, line numbers etc.
  • Full source code highlighted printing.
  • Standard text search OR regex search in current or all open files.
  • Jump to function declaration, Find Function declaration.
  • Find API declarations in installed Gtk-Doc's.
  • Find and open include file.
  • Multiple bookmarks.
  • Run external tools.
  • Save/Restore session.
  • Run external tool synchronously or asynchronously.
  • Pass selected text to external tools.
  • Spell checking via ASpell, check selected word or check document via tab menu.

enter image description here

medit Install medit

Official site

  • Configurable syntax highlighting.
  • Configurable keyboard accelerators.
  • Multiplatform - works on unix and windows.
  • Plugins: can be written in C, Python, or Lua.
  • Configurable tools available from the main and context menus. They can be written in - Python or Lua, or it can be a shell script.
  • Regular expression search/replace, grep frontend, builtin file selector, etc.

    medit screenshot

share|improve this answer

I would recommend Atom. Advantages:

  • multi-platform (works also on Windows, MacOS),
  • developed and backed by GitHub,
  • based on standard technologies like Chromium web browser and JavaScript,
  • and therefore has huge base of extensions for many use cases.
share|improve this answer
    
you did not mention that it is more resource hungry than other text editors – Rat2000 Apr 27 at 14:41
    
It's a good editor, but not perfect. What about the disadvantages? Stock Atom is slow and uses way too many resources. Installing the FB packages will also use 100% of your disk throughput and install far too many GBs of data. Eventually you may not even be able to start the app. Perhaps FB have fixed this by now, but i doubt it (considering the millions of lines of code and sheer package size). – dhaupin Apr 27 at 14:50
    
@dhaupin, You are right, Atom also has some disadvantages. BTW, what do you mean when you talk about "FB" packages? – Robert Zelník Apr 30 at 7:32
    
@RobertZelník oo my bad, FB = Facebook. Their suite is nuclide.io. Its pretty sweet, but incredibly heavy. I cant wait till some of these atom packages "slim down" if that makes sense. – dhaupin Apr 30 at 20:45
    
Ok, thanks for your explanation. As I understand, Nuclide.io is a package for Atom developed by FB team, independently on Atom itself, so there's no reason to anyhow review Nuclide when we talk about Atom. However, you are right about resource-hunger of Atom and web-browser-based applications in general. Thank you for your notice, I will try to rewrite my recommendation. – Robert Zelník May 1 at 21:49

Did you try Atom? https://atom.io/

sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update 
sudo apt-get install atom

Or, did you try Sublime Text?? http://www.sublimetext.com/

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update 
sudo apt-get install sublime-text-installer

Sublime is not free and sometimes when using it displays a notification to buy it. But, you can "evaluate it" as much as you want. (Sublime website says "There is currently no enforced time limit for the evaluation" )

share|improve this answer
2  
It would help to mention the major caveat that Sublime costs $70 and will deploy pop-ups and whatnot if the user hasn't paid. – underscore_d Sep 19 '15 at 15:29

Have a look at scribes. Features:

  • Automatic word completion
  • Automatic correction and replacement
  • Automatic pair character completion and smart insertion
  • Automatic indentation
  • Many languages
share|improve this answer

Try eric4.

I use both notepadd++ on windows and eric4 on Debian. Eric is superior in many ways to notepad++ in my opinion and is free.

share|improve this answer
1  
As I, for one, can't read your mind, please enumerate some of those "many ways". – Cees Timmerman Nov 27 '15 at 17:08

You can use a editor called Atom which is developed by GitHub. It is open source and has git support embedded (and has lots of other features).

More information and how to install it can be found here:

https://github.com/atom/atom

share|improve this answer

protected by Community May 14 '14 at 9:23

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.