Super User is a question and answer site for computer enthusiasts and power users. 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

I would like to simply publish a project's source code on a server.

Currently gitweb works well, except I don't need the extra revisions features, and there is some configuring needed such as setting project descriptions. Also, it doesn't have syntax highlighting

Basically, are there any alternatives that let you browse source code like gitweb does?

Things like trac are overkill for just displaying source code. I'd like something simple.

share|improve this question
up vote 2 down vote accepted

I use cgit to host many different subprojects under one interface. cgit does caching so it can be much faster than gitweb which needs to parse the projects all the time. In fact cgit powers e.g. the Gnome project's repositories web-frontend. Cgit can do source highlighting with highlight, but it should be possible to use something like pygments instead.

share|improve this answer

Why not host on github? They may provide more features than you need, but their syntax highlighting is nice, and assuming your project is open-source, it's free. Otherwise, see the last section of the git wiki entry for gitweb for a list of other web interfaces, one of them might suit your needs.

share|improve this answer
One reason that you might want to run something like gitweb or cgit is for an internal server, so that people can browse the source code on the internal network but it's not public like github is. – jamuraa Aug 5 '11 at 13:42
Sure, I can see that. Github also has private repos, although they cost a (minimal) amount of money if you just need a few. – jeremiahd Aug 5 '11 at 16:47

The only thing I could find that is like gitweb is Mercurial

share|improve this answer
Mercurial is a source-control system, similar to git. Gitweb is for browsing source code in a web browser. Does mercurial allow you to display source with syntax highlighting out of the box? – jeremiahd Jul 27 '10 at 15:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .