Snippet Manager

v1.8 now available!

  • (11 Pages)
  • +
  • « First
  • 7
  • 8
  • 9
  • 10
  • 11

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

#115 gbertoli3   User is offline

  • DIC at Heart + Code
  • member icon

Reputation: 41
  • View blog
  • Posts: 1,166
  • Joined: 23-June 08

Re: Snippet Manager

Posted 06 September 2008 - 10:46 AM

You can add:
Html
Javascript
CSS
Was This Post Helpful? 0
  • +
  • -

#116 jacobjordan   User is offline

  • class Me : Perfection
  • member icon

Reputation: 115
  • View blog
  • Posts: 1,499
  • Joined: 11-June 08

Re: Snippet Manager

Posted 06 September 2008 - 01:42 PM

Ok, well i managed to crank out about 10 more schemes for you: Attached File  MoreLanguages.zip (3.77K)
Number of downloads: 31
Was This Post Helpful? 0
  • +
  • -

#117 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Snippet Manager

Posted 07 September 2008 - 12:55 PM

Time for a demo.

I've made it a lot more stable, but it still fucks up occasionally. Mostly when you click back somewhere else in the code to edit it. But I'll fix that next (mostly the event handler's fault)

It barely flashes now, it still does a little~
And it seems more buggy today then every, fuck knows why, I ain't even done anything to it to affect half the crap.

Oh well, it's getting there.

Here's the screeny:
http://www.dreamincode.net/forums/index.php?act=Attach&type=post&id=8219

Attached image(s)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

#118 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Snippet Manager

Posted 08 September 2008 - 07:29 AM

Good news:
I got it working much better. It barely flashes at all now.

Rather than highlighting it and then changing the properties, I now highlight it and delete it (highlight time is non-existent) then change the properties, append the text, and change them back.

It's a longer process, but it actually works much faster.

There's a bug when you write somewhere other than at the end of the RTB at the moment, but I can fix that (most likely tonight)

@Psycho:
How's it coming with the block comments? You done it yet? :)
Was This Post Helpful? 0
  • +
  • -

#119 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Snippet Manager

Posted 08 September 2008 - 12:34 PM

I'm thinking about trying to add some simple intellisense.

Nothing vile, and nothing that automatically does crap to your code.

Similar to that of Code::Blocks, where you actually have to click it to add it into the code.

Thoughts?
Was This Post Helpful? 0
  • +
  • -

#120 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Snippet Manager

Posted 09 September 2008 - 04:26 PM

No one likes me now I suggested Intellisense? :lol:

I think I'm gonna do it, and I'll make it optional. Very easy to turn on/off, like a keyboard shortcut or something.


As for the syntax box, it's really coming along.
Flashing == NULL ~ I used LockWindowUpdate from the Win32 API
It returns the colour back if the user changed it (ie, before it would be integer, now it's integer and int) :)
It changes the colour of the entire line on a line comment (if something was typed, then the user went back and typed //)

All in all, I'd say it's about 90-98% done now. Just a few tweaks to block comments, and that's it. (Similar to the line comment, but it will highlight until it finds */ or whatever the close tag is.) Also support for nested comments! (already got this figured out)
Then I'll make the intellisense (much simpler than this, I've already got it planned out) and put the whole thing on SourceForge or CodeProject or something.

@Psycho:
How's yours coming along? Have you finished your syntax highlighting now?

When I go back to the Snippet Manager from this side-project, I'm gonna add a little "log" box at the bottom. What for? You'll have to wait and see~ ;)
Was This Post Helpful? 0
  • +
  • -

#121 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1663
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Snippet Manager

Posted 09 September 2008 - 04:47 PM

The syntax highlighting is complete (aside from block comments). Just completed deleting a language, which deletes all snippets in the category. Completed the ability to move a snippet to a different language, it highlights 17 languages now. Redid the line numbering (old was was causing the application to freeze sporadically).

Highlighting is done with the help of syntax files (like C++.syntax) and the languages available to work with are stored in an XML file then populate a DropDownList to let you know which languages you can add to your TreeView

If you add a snippet to a language not in your list yet it adds that language to your categories.xml file before adding the snippet (the of course refreshes your TreeView). Find, Find Next, Replace, Replace All now work. Next will be completing the ability to delete a snippet then copying & pasting.

Still need to finish tying all the methods for the context menu's. As you're typing in a snippet it counts the characters for you and shows you where the cursor is at (line number and column it's currently at). I think I may upload the demo later so you can see it. Keep in mind that all functionality isn't completed yet (I only get to work on it like an hour or two a day right now).
Was This Post Helpful? 0
  • +
  • -

#122 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1663
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Snippet Manager

Posted 09 September 2008 - 05:46 PM

Well here's a sneak peek at my SnippetKepper+. Keep in mind it's only about 65% to 70% completed with the functionality I plan for Release 1. Let me know if I forgot to add any files that cause it to not run at all :)

Attached File  SnippetKeeper.zip (182.44K)
Number of downloads: 38
Was This Post Helpful? 0
  • +
  • -

#123 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Snippet Manager

Posted 10 September 2008 - 01:47 AM

I got an unhandled exception almost straight away, when I pasted my code into the new snippet window.

Here:
http://www.dreamincode.net/forums/index.php?act=Attach&type=post&id=8280

Also, it kept the original formatting from the window of my IDE, as opposed to applying your own highlighting~

Other than that, I really like the GUI. One thing I'm not too sure of is the readonly aspect of the main window, it confused the hell outta me until I remembered one of your older screenshots.

Your highlighting works pretty well, too. One thing that I noticed, though is this:
if you type a keyword with an extra character, it will still be blue until you enter something else.
Example:
intt (after pressing a key it becomes) intt (colourless)
^The colour goes, but it's there for that extra character~ if the user were to click somewhere else, wouldn't it leave intt the way it is? (I didn't try that)

Attached image(s)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

#124 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1663
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Snippet Manager

Posted 10 September 2008 - 07:20 AM

Eeeeeek, I didn't test it with pasting a long bit of code, I think it's the line numbering (though not sure, I'm trying to recreate the problem now)
Was This Post Helpful? 0
  • +
  • -

#125 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Snippet Manager

Posted 10 September 2008 - 10:59 AM

Just paste a looong piece of code.

The code I pasted was ~500 lines (yeah, the class got big) ;)
Was This Post Helpful? 0
  • +
  • -

#126 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Snippet Manager

Posted 10 September 2008 - 12:19 PM

Almost complete. 2 bugs with comments to fix, and the next version of the snippet manager will soon be available.
Either tonight or tomorrow night.

Then, I'm gonna upload it to SourceForge. :)
Was This Post Helpful? 0
  • +
  • -

#127 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Snippet Manager

Posted 10 September 2008 - 12:34 PM

Got a few more bugs for ya Psycho:
It highlights the letter i if it's alone? Not sure if it's a bug, it just seems weird.
Deleting a snippet doesn't work. The program just stops for a few seconds, then the tree view still looks the same (and it can be loaded again)
Automatic indents? (I don't see any, but I remember you saying you did that?)
Some of the line numbers are coloured (I don't think they should be?)
Stuff needs to be anchored (try resizing the window)


I really like the icons, did you create them yourself?
Particularly the language icons. :^:
Was This Post Helpful? 0
  • +
  • -

#128 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1663
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Snippet Manager

Posted 10 September 2008 - 12:40 PM

I know about those things, that's why I said it was only about 65% complete silly :P

Thanks though :)
Was This Post Helpful? 0
  • +
  • -

#129 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1440
  • View blog
  • Posts: 11,025
  • Joined: 06-February 08

Re: Snippet Manager

Posted 10 September 2008 - 01:09 PM

lol, just checking ;)

You didn't answer my question about the icons, did you make them yourself?
Was This Post Helpful? 0
  • +
  • -

  • (11 Pages)
  • +
  • « First
  • 7
  • 8
  • 9
  • 10
  • 11