Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm looking for a good code snippet manager, with syntax highlighting and search capabilities. Another important feature is the capability of changing the code area background color. I have tested some Adobe Air apps that had white background everywhere, which hurts my eyes.

I'm using KDE btw. I use Kate for coding, but I don't like it's snippet plugin.

share|improve this question
    
I don't really like snippet plugins because the encourage copy-and-paste style coding. What you should be trying to do is to write good javascript libraries of find some that do it for you so that you do not need these snippets lying around. That would be my suggestion. –  Robert Massaioli Oct 12 '10 at 4:06
    
I agree with you, to a certain point. The problem is that I need to constantly access Firefox's API with the same methods. So is not a matter of writing a library to avoid copy and paste. –  lovinglinux Oct 12 '10 at 11:43
3  
@Robert, i think that's a little BS. Just because I don't want to write <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.js"></script> or sudo /etc/init.d/apache2 stop over and over again rather than just a simple key combo like ctrl+alt+shift+j or whatever doesn't make us bad developers... –  Oscar Godson Feb 5 '11 at 6:08
1  
@Oscar Your opinion is fine, if you want to do that and you like it then that is fine. Notice that I did not say that it makes you a bad developer but rather that it encourages a style that I do not think is good; doing it though does not make you a bad developer. I offered an opinion with no facts which means that anybody can take it or leave it and that your comment is equally valid. –  Robert Massaioli Feb 6 '11 at 5:28
add comment

7 Answers

If you're working in python, Acire is a good choice.

acire

First, you need to install the Python Snippets library

sudo add-apt-repository ppa:python-snippets-drivers/python-snippets-daily
sudo apt-get update
sudo apt-get install python-snippets

Then you can install Acire itself:

sudo add-apt-repository ppa:acire-team/acire-releases
sudo apt-get update
sudo apt-get install acire
share|improve this answer
    
I work mainly with XUL and Javascript. –  lovinglinux Oct 12 '10 at 3:57
add comment

instead of kate i recommend you Gvim and the SnipMate plugin, it's highly customizable, and really easy to use. Greetings

share|improve this answer
    
Thanks for your suggestion, but I really like kate and don't like vim. –  lovinglinux Oct 12 '10 at 1:33
add comment

You should try Code Barrel. It is cloud based so you can get your snippets anywhere. Oh, and it's free.

share|improve this answer
    
Thanks. It looks awesome. I have tried it is what I'm looking for. The problem is that it is kind of slow and you can only store 25 snippets in the free plan. I'm definitely not willing to pay $9.95 a month to store snippets. I think this is more useful for companies with many developers. –  lovinglinux Oct 12 '10 at 12:42
add comment
up vote 1 down vote accepted

I'm using Eclipse, which has a really nice snippet manager, with support for variables and drag-and-drop.

share|improve this answer
add comment

If you're still looking for a good snippet manager tool, may I recommend QSnipps. It's cross-platform, has syntax highlighting, supports database share across all your computers.. etc.

Give it a try at: http://www.qsnipps.com/

share|improve this answer
add comment

This is old, but I thought i'd add: http://code.google.com/p/snippely/

I hate AIR apps, but this one was an exception. It's well designed and works well.

share|improve this answer
add comment

Use a post-it application, like TomBoy or GNote. It's light and nice and stays in the panel at the top.

share|improve this answer
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.