Snippet Manager

v1.8 now available!

  • (11 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »

157 Replies - 14136 Views - Last Post: 02 March 2009 - 11:13 AM

#1 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1384
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Snippet Manager

Posted 24 August 2008 - 08:26 AM

This was an idea I had a while ago, but never got around to doing. [in other words, like most of my ideas]

But, I've finally delved into .NET and it's going pretty well.

Basically, it's a very simple program, with a tree view on the left, and a rich text box on the right. You can select the snippets, sorted by language, from the tree view, and it will load it into the rich text box. There are a few buttons as well, but they don't all have functionality yet.

Once I've got a working version, I'll post it here.


TO THOSE OF YOU WHO WANT TO DOWNLOAD THE LATEST VERSION:
Remember to go to the most recent post.
I've left all previous versions here, and I've struck them out
The newest is in bold

Version 1.0b is available here if you don't want to read through all of the development process. ;)

And the latest *reasonably* stable version is here: Version 1.3.6b ~ it even has tabs!

:)

Is This A Good Question/Topic? 0
  • +

Replies To: Snippet Manager

#2 abgorn  Icon User is offline

  • sudo apt-get install brain
  • member icon

Reputation: 30
  • View blog
  • Posts: 1,410
  • Joined: 05-June 08

Re: Snippet Manager

Posted 24 August 2008 - 10:02 AM

Cool, it would also be a good note taking app if you got bored with it. And will the snippets be editable do you think?
Was This Post Helpful? 0
  • +
  • -

#3 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1384
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: Snippet Manager

Posted 24 August 2008 - 11:38 AM

Yeah, completely editable.

I've got a very early sample, there's not too much to it yet, and there are some bugs, but please try it!

I've added a sample snippet, just so you can load one.
Just open the program, and click it in the tree menu on the left.

Note that you have to create a new language directory before you can create a new snippet in that directory. In other words, if the directory doesn't already exist, the program will freeze when you click OK on the new dialog.

<edit>
There's a newer version, available here but I'll leave this available for those of you who want to see the progress. :)
</edit>
Attached File  Snippet_Manager_0.5a.zip (5.7K)
Number of downloads: 53

I'm looking for constructive criticism, not just "you suck" and if possible, some suggestions would be nice.

Future development ideas:
  • Make it possible to compile the code. (Turn it in to a mini-IDE)
    -You would have to configure your compiler yourself, as a one time thing.
  • Syntax highlighting, for various languages
  • Workspaces~ make it more manageable
  • About and help buttons

Was This Post Helpful? 0
  • +
  • -

#4 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1384
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: Snippet Manager

Posted 24 August 2008 - 12:30 PM

Ooooooo someone downloaded it ^_^

Anyway, I've just edited it some more. Try resizing that version, the anchors are screwy. I just fixed that.

And, because I was coming up with more and more options, there wasn't enough room for all those big nasty buttons. So right now, everything you see there is actually under "File" :)
Was This Post Helpful? 0
  • +
  • -

#5 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 521
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: Snippet Manager

Posted 24 August 2008 - 12:34 PM

Yup, syntax highlighting would be the only thing I need...I'm pretty good about finding errors when/right after I make them.

Making a mini-IDE would be pretty cool to say the least.

I think you've done a good job on this, even though it's only an early sample! :) :^:

Might I offer a few minor, minor, changes? :)

The Font:

Well the font is a little small and weird looking (mostly because it's small). Might I recommend the Courier New font? That's what most IDEs I come across use, either Courier or Courier New. And make it size...about...12 - 14?

Pretty much other than that, it's good! Great job! :^:
Was This Post Helpful? 0
  • +
  • -

#6 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1384
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: Snippet Manager

Posted 24 August 2008 - 12:43 PM

Thanks :^:

Done.

Now to start working on customisable syntax highlighting!
Was This Post Helpful? 0
  • +
  • -

#7 abgorn  Icon User is offline

  • sudo apt-get install brain
  • member icon

Reputation: 30
  • View blog
  • Posts: 1,410
  • Joined: 05-June 08

Re: Snippet Manager

Posted 24 August 2008 - 03:16 PM

Cool! Though would you permenently out an IDE in it or eventually will you fork it and keep the sinppet manager? Because I'd use the snippet manager but the IDE would be unnessesary and it would shorten the size of it.
Was This Post Helpful? 0
  • +
  • -

#8 gbertoli3  Icon User is offline

  • DIC at Heart + Code
  • member icon

Reputation: 40
  • View blog
  • Posts: 1,162
  • Joined: 23-June 08

Re: Snippet Manager

Posted 24 August 2008 - 03:22 PM

What about SourceCode? Is it Available for Download?
Was This Post Helpful? 0
  • +
  • -

#9 gbertoli3  Icon User is offline

  • DIC at Heart + Code
  • member icon

Reputation: 40
  • View blog
  • Posts: 1,162
  • Joined: 23-June 08

Re: Snippet Manager

Posted 24 August 2008 - 03:36 PM

When you are done you should post this as a tutorial.
Was This Post Helpful? 0
  • +
  • -

#10 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1384
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: Snippet Manager

Posted 24 August 2008 - 03:58 PM

Yeah, the source code will be available once it's done. It's just a mess at the moment.

As for the tutorial, it's a possibility. I might write one on how I populate the tree view, we'll just wait and see how things go.

And I think I'd probably make the IDE seperately, this would just be a quick compile-and-test sorta thing. Though I could package them together, I suppose. :)
Was This Post Helpful? 0
  • +
  • -

#11 abgorn  Icon User is offline

  • sudo apt-get install brain
  • member icon

Reputation: 30
  • View blog
  • Posts: 1,410
  • Joined: 05-June 08

Re: Snippet Manager

Posted 25 August 2008 - 04:33 AM

Cool, it's a simple but good idea :D I like it very much! And it's written with .NET framwork?
Was This Post Helpful? 0
  • +
  • -

#12 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1384
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: Snippet Manager

Posted 25 August 2008 - 04:49 AM

Yep. I've been working with .NET since... Saturday! :o
So this is all new to me, but I'm getting there.

Here it is:
Again, kept to see development, but the newest is further down in this post.
Attached File  Snippet_Manager_0.7.6a.zip (7.5K)
Number of downloads: 42


There are a lot of changes, all for the better. It looks much neater now, there's an about option, all the previous options are under "File" and there's syntax highlighting on the word "test." (I know it's not the right word, but it's a start) :)

I need to fix some of the syntax highlighting, make it start from the beginning of the current line as opposed to the beginning of the text every time, which will hopefully reduce the flashing.

Again, feedback is welcomed :)

EDIT:
Here's the latest version. There's some basic C++ syntax highlighting going on, it doesn't highlight it when you load a file yet, but it does it as you type. It scans the text for the current line, so flashing is reduced.
Note that the cursor moves to the end if you type somewhere in the middle of the box at the moment. That's one of the next things that I'll fix :)
Attached File  Snippet_Manager_0.8.3a.zip (7.38K)
Number of downloads: 56
<edit> Newer version available here </edit>

Here's a screen shot of the syntax highlighting in action:
Attached Image

I think the next addition will be preprocessor stuff, which makes the whole line a certain colour if there's a '#' at the beginning of the line.
Also, I'll make that stuff bold too, to make it stand out more. :)
Was This Post Helpful? 0
  • +
  • -

#13 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1384
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: Snippet Manager

Posted 25 August 2008 - 07:57 AM

I think I'm getting the hang of this!

Check out the syntax highlighting:
http://www.dreamincode.net/forums/index.php?act=Attach&type=post&id=8114

Hooray!

Attached image(s)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

#14 gbertoli3  Icon User is offline

  • DIC at Heart + Code
  • member icon

Reputation: 40
  • View blog
  • Posts: 1,162
  • Joined: 23-June 08

Re: Snippet Manager

Posted 25 August 2008 - 07:59 AM

Alright Good Job!
I'm looking forward to seeing the final result
Was This Post Helpful? 0
  • +
  • -

#15 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1384
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: Snippet Manager

Posted 25 August 2008 - 08:11 AM

Well, I'm getting there slowly but surely :)

Next up, I suppose it's quotes, so I can get something like
"This is all a single colour";

Was This Post Helpful? 0
  • +
  • -

  • (11 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »