Snippet Manager

v1.8 now available!

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

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

#100 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




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

Re: Snippet Manager

Posted 03 September 2008 - 12:19 PM

That's brilliant!

<n00b moment>
How did you get the right click menus with that little blue strip?
</n00b moment>


*feels less accomplished now, after comparing to Psycho's version* :(
Was This Post Helpful? 0
  • +
  • -

#101 mocker   User is offline

  • D.I.C Regular
  • member icon

Reputation: 52
  • View blog
  • Posts: 466
  • Joined: 14-October 07

Re: Snippet Manager

Posted 03 September 2008 - 12:23 PM

Wow nice job, that was some pretty fast progress into it. If there is a way you guys could keep the current version of the source available (hello sourceforge?) I'd love to play with it this week.

A few things I might add to it:
-syntax highlighting for perl,php and javascript
-a web crawler that can go through the snippets listed on DIC and generate an xml file that you can import into this tool
-possibly an ftp or scp function so you can save your connection details, then hit a button to upload the code you are working on
Was This Post Helpful? 0
  • +
  • -

#102 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 03 September 2008 - 12:28 PM

@gabehabe: It's a ContextMenuStrip Control found in your Toolbar

@mocker: So far I have syntax highlighting for:
  • C#
  • VB.NET
  • C++
  • Python
  • Perl
  • PHP
  • Java
  • Ruby

Was This Post Helpful? 0
  • +
  • -

#103 Korupt   User is offline

  • D.I.C Head
  • member icon

Reputation: 21
  • View blog
  • Posts: 185
  • Joined: 22-June 08

Re: Snippet Manager

Posted 03 September 2008 - 01:02 PM

View Postgabehabe, on 3 Sep, 2008 - 03:10 AM, said:

I didn't get anything done on this yesterday, I was just playing around in Google Chrome all night ^_^


where do you download the source for that thing?
Was This Post Helpful? 0
  • +
  • -

#104 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 03 September 2008 - 01:19 PM

@Korupt: Ill get with gabehabe about possibly creating a SourceForge account for our projects (his and mine), or maybe Ill set up a FTP account on my domain for them
Was This Post Helpful? 0
  • +
  • -

#105 Nykc   User is offline

  • Gentleman of Leisure
  • member icon

Reputation: 740
  • View blog
  • Posts: 8,654
  • Joined: 14-September 07

Re: Snippet Manager

Posted 03 September 2008 - 02:17 PM

Nice job both of you. I would really love to see someone port this to Linux.
Was This Post Helpful? 0
  • +
  • -

#106 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




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

Re: Snippet Manager

Posted 03 September 2008 - 02:25 PM

I've actually already got a SourceForge account, I was gonna upload this when it got a little further.

@Korupt:
Check the thread in the corner cubicle, and search "chromium"
But be warned, you need 1.6gb to store the source code, and you need 10gb to compile it.
Was This Post Helpful? 0
  • +
  • -

#107 Korupt   User is offline

  • D.I.C Head
  • member icon

Reputation: 21
  • View blog
  • Posts: 185
  • Joined: 22-June 08

Re: Snippet Manager

Posted 04 September 2008 - 02:32 PM

cool thanks, also looking forward to the code for the snippet manager :)
Was This Post Helpful? 0
  • +
  • -

#108 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




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

Re: Snippet Manager

Posted 05 September 2008 - 03:19 AM

Got some work done on my SyntaxBox class yesterday, it's almost done.

Just need to add support for nested comments, and auto indentation.

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

#109 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




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

Re: Snippet Manager

Posted 05 September 2008 - 10:19 AM

@jacobjordan:
If you're still up for writing a syntax file, I'd really appreciate it. :)

The format is real simple. I didn't go for XML in the end, there was no need.

Just one word per line. Also, since comment tags vary, if you could do something like this:

Quote

//
/* */
<leave this line blank>
using
namespace
etc...
<leave this line blank>
#

Single line, block start/block end, then the words. Then leave a blank line, and add anything that should only be highlighted if it occurs at the beginning of the line. (Like preprocessor stuff in C++)

:^:
Was This Post Helpful? 0
  • +
  • -

#110 jacobjordan   User is offline

  • class Me : Perfection
  • member icon

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

Re: Snippet Manager

Posted 05 September 2008 - 07:34 PM

I am very willing, and i will get to it as soon as i can. Also, something that concerns me

Quote

//
/* */

some languages, like VB, do not support C-style multiline comments. I hope you have your algorithm so it can handle this.

This post has been edited by jacobjordan: 05 September 2008 - 07:37 PM

Was This Post Helpful? 0
  • +
  • -

#111 jacobjordan   User is offline

  • class Me : Perfection
  • member icon

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

Re: Snippet Manager

Posted 05 September 2008 - 07:55 PM

And, here they are. Attached File  Languages.zip (2.56K)
Number of downloads: 32
I will add more if i can make sense of the syntax files in Programmer's Notepad. Those are the only languages i know, so i knew what i was looking for there.
Was This Post Helpful? 0
  • +
  • -

#112 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 05 September 2008 - 08:52 PM

You can make me one for ColdFusion if you like. I have mine set up like this (here's the one for Java I have)

Quote

[KEYWORDS]
abstract
assert
boolean
break
byte
case
catch
char
class
const
continue
default
do
double
else
enum
extends
final
finally
float
for
goto
if
implements
import
instanceof
int
interface
long
native
new
package
private
protected
public
return
short
static
strictfp
super
switch
synchronized
this
throw
throws
transient
try
void
volatile
while

[DATATYPES]
byte
short
int
long
float
double
char
string
boolean
string
String
[OPERATORS]
=
+
-
%
/
*
++
--
!
==
!=
>
>=
<
<=
&&
||
?:
!
>>
<<
>>>
&
^
|

[COMMENTS]
//


As long as I have this format it doesn't matter which language my highlighter is reading. I already have files for C++, C#, VB.NET, Boo.Net, Perl, Python, Ruby and PHP. If you can think of any other languages kindly let me know :)
Was This Post Helpful? 0
  • +
  • -

#113 gabehabe   User is offline

  • GabehabeSwamp
  • member icon




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

Re: Snippet Manager

Posted 06 September 2008 - 05:17 AM

Yeah, I've already got it set up so it doesn't always look for block comments.

Thanks jacobjordan :^:

I'll most likely implement them tomorrow now~ I'm off out tonight, and if I get started now I most likely won't manage to shift off of my arse all day... -_-
Was This Post Helpful? 0
  • +
  • -

#114 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 06 September 2008 - 10:28 AM

Well I'm hoping to at least have a semi-ready example to upload and let you try out today. The languages that are currently included in this release are:
  • C#
  • VB.NET
  • Visual Basic 6
  • C++
  • Java
  • Perl
  • Python
  • Ruby
  • PHP
  • SQL
  • mySQL
  • Boo
  • ColdFusion
  • FoxPro

I will add more languages as I go along, but 14 is enough to start with. If you have a request for a language please let me know :)
Was This Post Helpful? 0
  • +
  • -

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