Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
You need to convert Python source code into HTML markup, rendering comments, keywords, operators, and numeric and string literals in different colors.
tokenize.generate_tokens does most of the work. We just need to loop over all tokens it finds, to...
0
2137
posted 15 years ago by magicrebirth
Cut-and-paste the following into your functions.php file (inside of your theme folder).
Change the Name-goes-here to whatever you want.
0
1933
posted 15 years ago by redconservatory
I took this out of an example in tutsplus, and I added a fadeIn action for aesthetic reasons.
0
3126
posted 15 years ago by luizlopes
Envia un mensaje a los amigos desde method send de facebook graph
0
1569
posted 15 years ago by serialk89
The html5.js and must be inserted in the head element (this is because IE needs to know about the element before it comes to render them - so it can't sit in the footer of the page, i.e. below the elements in question).
0
2707
posted 15 years ago by blantonious
The email type will pop up a tool tip if an invalid email address structure is not entered.
0
1651
posted 15 years ago by blantonious
The type is no longer needed in script and link tags in HTML5
0
1671
posted 15 years ago by blantonious
Make you able to use a variable to retrieve an key in a JSON object
0
1255
posted 15 years ago by catchatpas
You can keep your old version
<html> but in HTML5 you can shorten it.
0
1453
posted 15 years ago by blantonious
[from the author's website]
I wrote this to better understand the relationship between RGB colors. Running it will generate a fairly large HTML file with all sorts of color transitions on it so you can see what is happening as colors are tweaked in...
0
1967
posted 15 years ago by magicrebirth
This small javascript hides the table that holds statistical counters on hotdog.hu profile pages [footer part].
0
1341
posted 15 years ago by Oroborus9