v1.8 now available!

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

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!

Re: Snippet Manager

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>Snippet_Manager_0.5a.zip(5.7K)Number of downloads: 55
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.

Re: Snippet Manager

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?

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.

Re: Snippet Manager

Yep. I've been working with .NET since... Saturday!
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.Snippet_Manager_0.7.6a.zip(7.5K)Number of downloads: 44

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 Snippet_Manager_0.8.3a.zip(7.38K)Number of downloads: 58 <edit> Newer version available here </edit>

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

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.