Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.