For issues relating to the creation, use, and maintenance of code snippets.
-4
votes
1answer
14 views
how to develope a code snippets website with demos [closed]
What should i need to make my website show code snippets and a demo for that code snippet;
I have tried a lot of syntax highlighter like snippet, syntax highlighter etc but not all these are working ...
0
votes
1answer
21 views
VisualStudio can't recognize my snippets when the code uses html tags
When I use "< a > < ! [ CDATA[]]> < / a >.Value" anywhere in my code and then I try to export and later import as Snippet then VisualStudio can't recognize the snippet because the tags are in ...
1
vote
6answers
41 views
How to add html code into html?
Right now I am creating a website that will teach people HTML and CSS. Everything is fine about the design except for one thing. I do not know how to type HTML code snippets into HTML code (this ...
0
votes
1answer
14 views
Why the code in a pre tag which is inside a table cell look terrible?
I have tried to use html to make my own quick reference to different programming language, in the reference I tried to put the code snippet inside a pre tag which is inside a cell tag.
First, html ...
1
vote
2answers
9k views
Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in
I'm working with PHP PDO and I have the following problem:
Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in ...
5
votes
3answers
11k views
How do I setup/use ruby on rails snippets and autocomplete in sublime text 2?
I would appreciate if someone could direct me to a website that shows how to do this..
Can't seem to find anything decent enough via google.
This will be the first time I'm doing this kind of thing ...
0
votes
0answers
16 views
Setup 5 star ratings and rich snippets in an HTML page
I have some HTML website
I want to add 5 star ratings to it and also use rich snippets reviews to display it in the google results.
The pages I want to use it are html pages and cant change them to ...
1
vote
3answers
916 views
Exporting Eclipse Snippets
How can I export my Eclipse Snippets so that I can re-use them on another machine?
0
votes
1answer
46 views
Custom JavaScript snippets for emmet (in Sublime Text 2)
I am trying to add some custom javascript snippets and abbreviations to the snippets.json file of Emmet, but I can't get it to work! (I am using Sublime Text 2.)
If I put this into the end of the ...
14
votes
7answers
10k views
Code-snippet or short cut to create a constructor in Visual Studio
What is the code-snippet or short cut to create a constructor in Visual Studio?
Visual Studio 2010 and C#.
I've used before but I can't remember.
236
votes
31answers
145k views
How to detect if JavaScript is disabled?
There was a post this morning asking about how many people disable javascript. Then I began to wonder what techniques might be used to determine if the user has it disabled. Anyone know of some ...
0
votes
3answers
2k views
Code Snippet Application for Windows 7
I like to collect and save code snippets that are useful to me. I tried searching for a code snippet manager but I'm unable to find something. There are plenty for Mac OS.
42
votes
10answers
5k views
How do you manage your gists on github?
I love github and their gist service and that's why I'm keeping a lot of code snippets and even development notes as a gist on my github account. It also makes it easy to share them with my ...
1
vote
2answers
578 views
Sublime Text 2: name of the scope selector for Objective-C
I am trying to create an Objective-C snippet in Sublime Text 2. I want to define the scope for the snippet so that the snippet is available in all Objective-C files.
But I just cannot find the scope ...
12
votes
4answers
2k views
Defining scope for custom Sublime Text 2 snippets
While trying to write my own snippets for Sublime Text 2, I ran into the following two problems:
1) Finding scope keys. I figured out that I can look through my packages 1 by 1 and find references to ...