One of the first things I notice is a lack of the ability to set your internet proxy. Without that, I can't use it to access snipplr. Do you have any intention of adding that ability?
var result = new StringBuilder();
try
{
var transferProxy = new WebProxy("http://proxy:80/", true);
transferProxy.Credentials = new NetworkCredential("userId", "password", "Domain");
var transferRequest = WebRequest.Create("http://www.snipplr.com");
transferRequest.Proxy = transferProxy;
HttpWebResponse transferResponse = (HttpWebResponse)transferRequest.GetResponse();
System.IO.Stream outputStream = transferResponse.GetResponseStream();
System.Text.Encoding outputEncoding = System.Text.Encoding.GetEncoding("utf-8");
System.IO.StreamReader outputReader = new System.IO.StreamReader(outputStream, outputEncoding);
char[] chars = new Char[256];
int readCount = outputReader.Read(chars, 0, 256);
int totalRead = readCount;
while(readCount > 0)
{
string str = new String(chars, 0, 256);
result.Append(str);
readCount = outputReader.Read(chars, 0, 256);
}
transferResponse.Close();
outputStream.Close();
outputReader.Close();
}
catch(Exception ex)
{
string str = ex.Message;
}
I actually tried that one but it did not have drag and drop support. To me without that feature I do not feel any need for using another application really.Many thanks for your suggestion.

I have added a full drag and drop support in the current release (for both: files and text blocks from other IDEs or editors).
).I Implemented the feature last night and just published it this morning.thanks for the addition
CTRL, ALT, "S" will toggle the visibility of the snippet toolbar now.
By the way, There is another way to get snippets out of Snip-It Pro. You can publish them to Snipplr.com. Sign up for an account and enter your app ID into Snip-It Pro to enable this feature. Besides Snip-It Pro, there are plugins for Textmate and other programs that will allow you to get your snippets from Snipplr, so you won't be tied to Snip-It Pro. Snipplr is a pretty cool code snippet community, and every snippet you favorite, is viewable in Snip-It Pro.
if (config.UseCustomProxySettings)
{
System.Net.WebProxy proxy = new System.Net.WebProxy(config.ProxyServerAddress);
if (config.UseProxyCredentials)
{
proxy.Credentials = new NetworkCredential(config.ProxyUserName, config.ProxyPassword, config.ProxyDomain));
}
else
{
proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
}
SnipplrProxy.Proxy = proxy;
}
var result = new StringBuilder();
try
{
var transferProxy = new WebProxy("http://<proxyaddress>:<proxyport>/", true);
transferProxy.Credentials = new NetworkCredential("<username>", "<password>", "<domain>");
var transferRequest = WebRequest.Create("http://www.snipplr.com");
transferRequest.Proxy = transferProxy;
HttpWebResponse transferResponse = (HttpWebResponse)transferRequest.GetResponse();
System.IO.Stream outputStream = transferResponse.GetResponseStream();
System.Text.Encoding outputEncoding = System.Text.Encoding.GetEncoding("utf-8");
System.IO.StreamReader outputReader = new System.IO.StreamReader(outputStream, outputEncoding);
char[] chars = new Char[256];
int readCount = outputReader.Read(chars, 0, 256);
int totalRead = readCount;
while(readCount > 0)
{
string str = new String(chars, 0, 256);
result.Append(str);
readCount = outputReader.Read(chars, 0, 256);
}
transferResponse.Close();
outputStream.Close();
outputReader.Close();
}
catch(Exception ex)
{
string str = ex.Message;
}
StreamWriter fileOut = new StreamWriter("testProxy.txt");
fileOut.WriteLine(result.ToString());
fileOut.Close();
.
Why don't try my DTT (Developer's Tips & Tricks)? It's free...
Free download from: DTT page
Best regards,
FSL
And it seems like there is drag and drop nowOriginal address: https://www.donationcoder.com/forum/index.php?topic=15376.0