Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Substitute for Notepad++ for editing Stata files in Linux.

From   Neil Shephard <>
Subject   Re: st: Substitute for Notepad++ for editing Stata files in Linux.
Date   Fri, 20 May 2011 08:44:35 +0100

2011/5/20 Jorge Eduardo Pérez Pérez <>:
> I have used Notepad ++ to edit do files for a couple of years now.
> Occasionally I work with Stata under Ubuntu on my computer or on the
> Linux Server at work (I just open Stata there, I have no idea what
> distribution of Linux that computer is running)
> Editing do-files in the built-in editor on Linux without syntax
> highlighting is driving me crazy. However, I do not want to swith to
> Emacs or Vim since I am very happy with Notepad ++ and only use Linux
> occasionally.

I've never used Notepad++ , and you won't like my recommendation
below, but see the Stata Text Editors FAQ at for a host of
other options.

> Having said that, which editor would you recommend to edit do files
> under Linux? Ideally it would be
> 1. As close to Notepad ++ as possible
> 2. Able to execute pieces of code from within the editor.
> On the second point, I read a couple of previous posts and I also
> checked the review in the Boston College website (which seems
> outdated), and I am getting the feeling that nobody has written code
> to do that under Linux, but I might have missed something.

You can do this under Emacs Speaks Statistics running Stata within
Emacs, and I would recommend this (well I would since its what I use).
 I rarely run Stata from within Emacs though, and instead when there
is a chunk of code I want to test I'll highlight with the mouse and
then use the third-mouse button (emulated with simultaneous left-right

One alternative you might want to check depending on the Desktop
Environment (DE) you use and how bothered you are installing KDE
libraries if you use a GTK-based DE is gedit which will support syntax
highlighting as described at

I really like Emacs as its one environment where I can get everything
done, ESS is brilliant for Stata and R files (particularly Sweaving in
the later as it supports syntax higlighting for LaTeX too), great
support for LaTeX, and I recently started using the brilliant Org-Mode
for tracking ToDo/Agenda/timelogs (see  The
beauty is its the same on any platofrm, GNU/Linux, M$-Windows, Mac OSX
or anything else so you learn it once, and thats it, you don't have to
ask "what can I use under the XXX Operating System in place of YYY?".
Yes you have to learn a few key-strokes, but thats not much different
to committing to memory where things are in menus in my opinion (and
its far quicker than having to your hands off the keyboard, locate the
mouse on the desk, then the desktop and start pointing and clicking),
but I shan't go on.

> I also know that Notepad ++ runs under Wine. However I think the
> Notepad++-Stata integration will not work in that case. Has anyone
> tried that?

Sounds like more hassle than its worth.


“Truth in science can be defined as the working hypothesis best suited
to open the way to the next better one.” - Konrad Lorenz

Email -
Website -
Photos -

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index