Welcome To Snipplr
Everyone's Recent Snippets
- 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
1000
posted 13 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
885
posted 13 years ago by redconservatory
I took this out of an example in tutsplus, and I added a fadeIn action for aesthetic reasons.
0
1077
posted 13 years ago by luizlopes
Envia un mensaje a los amigos desde method send de facebook graph
0
741
posted 13 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
820
posted 13 years ago by blantonious
The email type will pop up a tool tip if an invalid email address structure is not entered.
0
770
posted 13 years ago by blantonious
The type is no longer needed in script and link tags in HTML5
0
763
posted 13 years ago by blantonious
Make you able to use a variable to retrieve an key in a JSON object
0
495
posted 13 years ago by catchatpas
You can keep your old version
<html> but in HTML5 you can shorten it.
0
644
posted 13 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
862
posted 13 years ago by magicrebirth
This small javascript hides the table that holds statistical counters on hotdog.hu profile pages [footer part].
0
572
posted 13 years ago by Oroborus9