Make medit your next Linux code editor |

Make medit your next Linux code editor

This classic text editor offers all the basics and some exciting extra features that let you customize your experience.

Person drinking a hot drink at the computer
Image credits : 

Subscribe now

Get the highlights in your inbox every week.

There’s XEDIT, jEdit, NEdit, gedit, and, as it turns out, medit

I had not heard about medit until I started searching for editors I hadn’t yet tried, but I’m glad to have discovered it. If you’re looking for a classic gedit experience (circa Gnome 2), then medit is, probably unintentionally, an excellent and modern approximation. It’s also got many additional features, such as the ability to write plugins in Python, Lua, or C, and a means to integrate even shell scripts into its menu system. All the other usual features are here, too—a tabbed interface, an on-demand shell, indentation management, syntax highlighting, and so on.

Installing medit

You can download medit from It’s confirmed to work on Linux and Windows. If you’re using Linux, you may also find it in your repository. I installed my copy from on Slackware.

Using medit

Medit advertises itself as an editor "for programming and around programming," and in fact, started its life out as part of a larger project called GAP (Groups, Algorithms, Programming). Most of its features are aimed at typical developer expectations. For instance, in the Edit menu, there are options to increase and decrease indentation, a common task for any programmer trying to indicate scope visually (and a literal requirement for Python programmers), and options to comment or uncomment blocks of text.

Some features can be useful for general users, too. Medit has an easy-to-use tabbed interface (both at the top of the window and as a pop-up list along the side), a side panel for quick filesystem browsing, the ability to bookmark places in a file, and so on. It also has syntax highlighting for both programming languages, as well as markup and markdown languages, so it’s a useful editor for code and prose alike.

Color schemes

When editing plain text with no syntax associated with it or a format like Asciidoc, for which medit has no preset highlighting scheme, the editor assumes your system default. I use a dark theme, so medit displays white text on a dark gray background.

For syntax highlighting, though, the text becomes colorful depending on the part each word plays in its structured language. At first, I was a little frustrated at some of the choices medit made; many of the colors were too dark against my dark background to be legible, and I didn’t feel that all the important elements were unique enough. The answer to this problem, should you disagree with medit’s choices, is in Preferences, where you can change the color theme. I changed mine to the Tango colors, which rendered a solarized color array that stood out nicely against my dark editor background and even added color to elements that were kept white under the medit theme.

Pop-up Python

At the bottom of the medit window, there’s a pop-up terminal for quick access to a shell. This is a nice feature, but frankly, after you’ve experienced Emacs and Kate, it feels pretty common. What surprised me about medit was its pop-up Python console, which launches from the Tools menu with moo and gtk modules pre-imported. In other words, when you launch medit’s Python shell, you can look through the Python and GTK modules that medit itself is partly built upon. It’s a great feature and one that might inspire you to write a plugin (the Terminal pop-up is a plugin written in Python, so you can also look through its code to get a feel for how a plugin is written).

Classic editing

Medit is a great GTK-based editor with all the important basic features and several tantalizing extras to help inspire you to extend the application and make it your own. As it accepts C, Python, Lua, and Bash, there are several entry points for doing just that. If you’re looking for a no-nonsense editor for your writing, whether it’s code or markdown or something in between, give medit a chance.

Computer screen with files or windows open

Xedit, part of the X11 graphic server, isn't much to look at but has enough hidden features to make it a serious text editor.
Person using a laptop

Jed's handy drop-down menu makes it easy for users who are new to terminal text editors.
Person drinking a hot drink at the computer

This editor packs the power of Java and offers plenty of plugins to streamline your workflow.

About the author

Seth Kenlon
Seth Kenlon - Seth Kenlon is a UNIX geek, free culture advocate, independent multimedia artist, and D&D nerd. He has worked in the film and computing industry, often at the same time. He is one of the maintainers of the Slackware-based multimedia production project Slackermedia.