144

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.

Aditya
  • 13,616
user171010
  • 1,449

13 Answers13

84

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!

74

Thanks to the work of Daniel Di Sardi there is an editor inspired to Notepad++ for Linux:

Notepadqq is a Notepad++-like editor for the Linux desktop.

Notice that the start of the GitHub page says, since May 27, 2023:

This project is not actively maintained anymore. New maintainers are welcome.

-- Daniele

notepadqq screenshot on linux

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

Rmano
  • 32,167
35

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.

Dillmo
  • 2,000
9

Nowadays I would recommend Visual Studio Code. It's free, open-source and runs everywhere!

Wikipedia says:

Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. It is also customizable, so users can change the editor's theme, keyboard shortcuts, and preferences. It is free and open-source, although the official download is under a proprietary license.

Visual Studio Code is based on Electron, a framework which is used to deploy Node.js applications for the desktop running on the Blink layout engine. Although it uses the Electron framework, the software is not a fork of Atom, it is actually based on Visual Studio Online's editor (codename "Monaco").

Farahmand
  • 281
8

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

Other alternatives which have rich features including easy-to-use macro tools:

KKEdit

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

https://github.com/KeithDHedger/KKEdit

http://linux-apps.com/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

VidathD
  • 2,829
Sadi
  • 11,074
6

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.

4

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" )

Mihai
  • 1,674
3

I've not been able to get notepad++ to work with wine/ubuntu. Nevertheless, you can install notepadd++ as a snap and it works just fine.

Go to https://www.ubuntu.com/desktop/snappy and follow the links. Snaps are available for a variety of containerized software packages. The snap "store" is located at https://snapcraft.io/store. The homepage is https://snapcraft.io .

Or check out https://linuxconfig.org/a-beginner-s-introduction-to-snaps-the-universal-linux-package-format or https://en.wikipedia.org/wiki/Snappy_(package_manager).

3

Ubuntu 14.04 and later

Notepad++ (notepad-plus-plus) is a snap package in the default repositories of all currently supported versions of Ubuntu. To install Notepad++ open the terminal and type:

sudo snap install notepad-plus-plus  

To add Notepad++ navigation to other drives besides the default drive:

sudo snap connect notepad-plus-plus:removable-media

enter image description here
Even though the window title says [Administrator] this file is opened with normal user permissions in Notepad++.

karel
  • 122,292
  • 133
  • 301
  • 332
2

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.

nverma
  • 21
2

Have a look at scribes. Features:

  • Automatic word completion
  • Automatic correction and replacement
  • Automatic pair character completion and smart insertion
  • Automatic indentation
  • Many languages
repat
  • 121
2

Brackets is a modern, open source text editor that understands web design. It's crafted from the ground up for web designers and front-end developers.

It is available for many OSs and works pretty good with Ubuntu. To install Brackets in all currently supported versions of Ubuntu open the terminal and type:

sudo snap install --classic brackets

enter image description here

karel
  • 122,292
  • 133
  • 301
  • 332
pa4080
  • 30,621