Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,358 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,162 people online right now. Registration is fast and FREE... Join Now!




Snippet Manager

13 Pages V  1 2 3 > »   
Reply to this topicStart new topic

Snippet Manager, v1.8 now available!

gabehabe
post 24 Aug, 2008 - 07:26 AM
Post #1


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,402



Thanked 94 times

Dream Kudos: 2625

Expert In: Dingleberries

My Contributions


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. wink2.gif

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

smile.gif
User is offlineProfile CardPM

Go to the top of the page

abgorn
post 24 Aug, 2008 - 09:02 AM
Post #2


Hello Crap for Brains

Group Icon
Joined: 5 Jun, 2008
Posts: 859



Thanked 4 times

Dream Kudos: 25
My Contributions


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?
User is online!Profile CardPM

Go to the top of the page

gabehabe
post 24 Aug, 2008 - 10:38 AM
Post #3


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,402



Thanked 94 times

Dream Kudos: 2625

Expert In: Dingleberries

My Contributions


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. smile.gif
</edit>
Attached File  Snippet_Manager_0.5a.zip ( 5.7k ) Number of downloads: 10

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
User is offlineProfile CardPM

Go to the top of the page

gabehabe
post 24 Aug, 2008 - 11:30 AM
Post #4


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,402



Thanked 94 times

Dream Kudos: 2625

Expert In: Dingleberries

My Contributions


Ooooooo someone downloaded it happy.gif

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" smile.gif
User is offlineProfile CardPM

Go to the top of the page

Locke37
post 24 Aug, 2008 - 11:34 AM
Post #5


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 911



Thanked 30 times

Dream Kudos: 300
My Contributions


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! smile.gif icon_up.gif

Might I offer a few minor, minor, changes? smile.gif

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! icon_up.gif
User is offlineProfile CardPM

Go to the top of the page

gabehabe
post 24 Aug, 2008 - 11:43 AM
Post #6


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,402



Thanked 94 times

Dream Kudos: 2625

Expert In: Dingleberries

My Contributions


Thanks icon_up.gif

Done.

Now to start working on customisable syntax highlighting!
User is offlineProfile CardPM

Go to the top of the page

abgorn
post 24 Aug, 2008 - 02:16 PM
Post #7


Hello Crap for Brains

Group Icon
Joined: 5 Jun, 2008
Posts: 859



Thanked 4 times

Dream Kudos: 25
My Contributions


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.
User is online!Profile CardPM

Go to the top of the page

gbertoli3
post 24 Aug, 2008 - 02:22 PM
Post #8


DIC at Heart + Code

Group Icon
Joined: 23 Jun, 2008
Posts: 1,026



Thanked 16 times

Dream Kudos: 950
My Contributions


What about SourceCode? Is it Available for Download?
User is offlineProfile CardPM

Go to the top of the page

gbertoli3
post 24 Aug, 2008 - 02:36 PM
Post #9


DIC at Heart + Code

Group Icon
Joined: 23 Jun, 2008
Posts: 1,026



Thanked 16 times

Dream Kudos: 950
My Contributions


When you are done you should post this as a tutorial.
User is offlineProfile CardPM

Go to the top of the page

gabehabe
post 24 Aug, 2008 - 02:58 PM
Post #10


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,402



Thanked 94 times

Dream Kudos: 2625

Expert In: Dingleberries

My Contributions


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. smile.gif
User is offlineProfile CardPM

Go to the top of the page

abgorn
post 25 Aug, 2008 - 03:33 AM
Post #11


Hello Crap for Brains

Group Icon
Joined: 5 Jun, 2008
Posts: 859



Thanked 4 times

Dream Kudos: 25
My Contributions


Cool, it's a simple but good idea biggrin.gif I like it very much! And it's written with .NET framwork?
User is online!Profile CardPM

Go to the top of the page

gabehabe
post 25 Aug, 2008 - 03:49 AM
Post #12


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,402



Thanked 94 times

Dream Kudos: 2625

Expert In: Dingleberries

My Contributions


Yep. I've been working with .NET since... Saturday! ohmy.gif
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: 1


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) smile.gif

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 smile.gif

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 smile.gif
Attached File  Snippet_Manager_0.8.3a.zip ( 7.38k ) Number of downloads: 12
<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. smile.gif
User is offlineProfile CardPM

Go to the top of the page

13 Pages V  1 2 3 > » 
Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 04:17AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month