Page 1 of 2
DEMO - Snippet Library
Posted: Thu Dec 06, 2012 10:10 pm
by Scottie1972
After another HD crash... ;(
I kicked the dust off of my old PC and just started to program.
This is not the Snippet Library that I want to release but something of a seed to grow from. "Maybe?!"
There still seems to be some issue with some code languages and how it is saved/read into the software.
these issues i will iron out later. As for now this is a very simple way to just save snippets of code to a library type environment.
Above is the Main view. nothing special just a couple of listviews. All actions are done with the "Double Click"
Above is the Snippet viewer. again, just something simple.
Above is the snippet creator, just simple enter what ever information you need to.
(Here is where there is issues submitting raw "XML" data.) so just dont save any xml stuff.
if you do, just delete the ???????.slf file from the directory.
future version will include (MySQL, Public Library Storage (API), and many program features such as custom icons, themes, email, plus extra data per each entry if needed.
if you want to play around with it then here ya go.
DEMO-Snippet_Library.zip
Re: DEMO - Snippet Library
Posted: Fri Dec 07, 2012 10:05 am
by Usman55
A new start always works well. Although you feel you lost a lot of it, however, it still brings along a lot of ideas that you would rather not think of.
Again, the work is going pretty well and everything is perfectly placed. I like it like that. I was interested in this project from the start. I hope you finish it in time.
Re: DEMO - Snippet Library
Posted: Fri Dec 07, 2012 11:28 am
by Shim
just downloaded and i hope i will use it
tip - what about adding a syntax highlighter
Re: DEMO - Snippet Library
Posted: Fri Dec 07, 2012 4:18 pm
by Scottie1972
Usman55 wrote:A new start always works well. Although you feel you lost a lot of it, however, it still brings along a lot of ideas that you would rather not think of.
Again, the work is going pretty well and everything is perfectly placed. I like it like that. I was interested in this project from the start. I hope you finish it in time.
thank you for the support!
i am planning a complete rebuild of the whole project.
but do to my server being down a couple more days i have to place everything on the back burner for now.
i still have some major issue with saving code (xml, xaml, html... anything with the "<" and ">" and "&&" symbols in the code.
I am using XML to store the data to a file system but I think I will have to rethink how i save the entries to disc.
even using <Node><![CDATA[ .... code ...]]></Node> doesnt seem to work on some types of code.
the only way i really got this to work 100% is by storing data to a MySQL database. But not everyone uses MySQL.
I could use just plan ol' .rtf to save data to but that seems like a cheap way out to solve a problem.
i am not sure yet, but when I get it worked out, you will be the first to know.
Re: DEMO - Snippet Library
Posted: Fri Dec 07, 2012 4:26 pm
by Scottie1972
mshimranpro wrote:just downloaded and i hope i will use it
tip - what about adding a syntax highlighter
syntax highlighter is not really an important feature for this project right now.
but, i might be able to add it in on future builds.
the main reason is do to all the different types of programming languages the highlighter engine would be larger then the program itself.
the project will be able to save code snippets for all known programming languages to include:
html
php
css
visual studio ( vb, c#, c++)
web developer ( all languages )
perl
ruby
mysql
java
javascript
apple script
jquery
and many others....
my goal is to create a program that anyone who writes code for fun or whatever reason will have a single place to store and recall code snippets. plus will be able to share there code snippets with others that have the program installed.
so maybe in the future once other bugs and issues have been dealt with i might include a syntax highlighter.
thanks for the input!
Re: DEMO - Snippet Library
Posted: Fri Dec 07, 2012 4:27 pm
by Usman55
Thanks for the info and the heads up. I'll be looking forward to this, literally.
Re: DEMO - Snippet Library
Posted: Sat Dec 08, 2012 12:24 pm
by smashapps
This is really cool, downloaded.
Re: DEMO - Snippet Library
Posted: Sun Dec 09, 2012 7:32 pm
by Scottie1972
OK so just a fast update for you guy that are interested.
The Snippet Library project is going well and I have upgraded it from DEMO to a Release.
It is not ready for release yet, but it will be by christmas i hope. i have some testing todo and bug hunting.
New Features:
* you can now choose and add custom icons for the library list.
* remove any Library from listings and you have an option to save the library to a .ZIP file.
MYSQL PlugIn
* included MySQL Librarys storage (requires you have MySQL installed and running)
- when you enable the plugin it will create the database and tables for you now. (makes it easier on you)
i have a few other features to include before i release it. but i just want you guys to know how the project is coming along.
Re: DEMO - Snippet Library
Posted: Sun Dec 09, 2012 8:21 pm
by CodenStuff
So the MySQL is all local then?. Any plans to host a database or are you just wanting it to be local software?
Saving libraries to a zip is good because it means easy sharing

Re: DEMO - Snippet Library
Posted: Sun Dec 09, 2012 9:01 pm
by Scottie1972
CodenStuff wrote:So the MySQL is all local then?. Any plans to host a database or are you just wanting it to be local software?
Saving libraries to a zip is good because it means easy sharing :)
well, I do have an API that I am working on as well that will allow users to submit snippets to the "Public" librarys.
and will be accessed thru the API or access the view only librarys via http://
so in short, there will be 2 local storage features and 1 hosted feature.
the 2 locals are
1- local file system that the application will use as default.
2- the MySQL just cause alot of people likes MySQL for data storage. (Im one of them) the MySQL server will
not be accessible via remote connection or anything like that. it will be purely for local storage only.
the 1 remote
1 - Public listing via the API, and web access is Read Only.
There will be no user interaction for the public website.
no user/member or visitor will be able to edit/add or delete any entrys in the public librarys. everything will be done thru the application and complete control is given to the owner/author of there library entrys.
Example Public Access:
Snippet Library Public Access