Welcome To Snipplr


Everyone's Recent Snippets Tagged text



1 ... 5 6 7 8 9 Next »
Create a copy of a text file with blank lines removed.
0 1042 posted 17 years ago by ches
4 1451 posted 17 years ago by andyhartleeds
This utility function attaches listeners to a text field or text area. It supports default text for instructional copy. The original text in the field is used as the instructional/default text. When the box gets focus, it disappears and the user can...
0 1179 posted 18 years ago by elli
This is an extension to Ruby's String class. Just put this code in a file and include it. This basically takes a string and adds literals and padding to it. For example, you can format a phone number with optional area code like this: "5445556...
1 1230 posted 18 years ago by Agent
This will highlight all functions not previously defined in PHP for the e text editor. They are assigned to the "entities" in the theme editor. By default, they are highlighted only when originally defined, but not when they are in use in your cod...
0 1613 posted 18 years ago by rjm1982
0 1010 posted 18 years ago by jugyo
Trims leading and trailing spaces from a string value and returns the result as a new string.
1 1375 posted 18 years ago by splorp
This handy CSS attribute can be used to keep text from wrapping. It can also be used to keep other HTML elements from wrapping. Simply apply the white-space:nowrap attribute to any HTML element to force text and images to not return within a specifie...
5 4643 posted 18 years ago by jonhenshaw
2 1320 posted 18 years ago by whitetiger
0 1216 posted 18 years ago by whitetiger
0 1185 posted 18 years ago by whitetiger
2 1493 posted 18 years ago by whitetiger
1 1208 posted 18 years ago by whitetiger
0 1078 posted 18 years ago by whitetiger
wrap the text that will become a pullquote in a span element and give it the class name "pullquote"
1 1179 posted 18 years ago by designerd
Builds a function which replace some caracters
1 1274 posted 19 years ago by dandyna
0 1111 posted 19 years ago by Jaymoon
Elimina las etiquetas de párrafo <P< y </P< (sin parámetros) y las sustituye por saltos de línea <BR />. En caso necesario inserta un <BR /> adicional para simular la separación de párrafos.
0 1166 posted 19 years ago by Navegante
Usefull Regular Expressions enhancement. Simplifies standard string operations escaping special chars. And also saves precompiled REs for a speed increase.
1 1195 posted 19 years ago by cochambre
This method generates random (and printable) ascii characters.
1 1383 posted 19 years ago by ishikawa
warning: snipplr tends to escape the quotes and slashes, causing this snippet to fail when pasted verbatim.
2 1502 posted 19 years ago by ndegruchy
1 ... 5 6 7 8 9 Next »