Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Is there a graphical application in the repositories which has keyboard controls like the command-line application "less" and also has syntax highlighting?

I would like it to have arrow keys that scroll the page instead of the cursor, and so there is no need for line wrapping I would like it to scroll the page sideways too.

share|improve this question
Have you tried vim? – Seth Dec 3 '12 at 1:32

I think the program that would be ideal for you is geany, which is in the repositories, and is both a text-editor and an IDE (integrated development environment). It has many plugins and support for syntax highlighting for programming languages such as python, java, javascript, etc. The program and its plugins can be installed with

sudo apt-get install geany geany-plugins

In the screenshot, you can see the useful vertical and horizontal scrollbars. If you go to edit > preferences > keybindings there are a massive number of options, and, according to the FAQ, geany uses standard GTK+ keybindings. Virtually every action in the editor can be assigned to a key, so I think you will be able to set it up as you wish.

In the screenshot below, I have opened a python script (originally from this site) in which I am trying to fix a problem in the way it parses ustream urls. As you can see, both syntax highlighting and some code suggestion/completion is built into the program:

enter image description here

share|improve this answer

i really really really like geany, however it doesnt really provide the kind of answer you're looking for. iSeth's suggestion is close to the best in my opinion, but doesnt really tell you how to use it. you may have already figured it out, but like most applications, vim accepts in put from STDIN, so you can pipe supported source files to it. I created an alias like this and use it when i need it from a command line, like the scripts that generate XML output for the openbox pipe menus for example.

alias vsh="vim -"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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