Welcome To Snipplr
Everyone's Recent Snippets Tagged text
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Using a sorted list remove all the lines in file2 from file1
0
580
posted 14 years ago by benpjohnson
ActionScript 3
Detecting when text has run into the end of the ContainerController in a TextFlow object
This snippet shows how you can detect when a FlowElement that has been added to a TextFlow object (Text Layout Framework) has run to the end of the container that is flowing into. You may have linked containers that you are flowing a load of lorem ip...
0
1148
posted 14 years ago by LeeProbert
ActionScript 3
Detecting when text has run into the end of the ContainerController in a TextFlow object
This snippet shows how you can detect when a FlowElement that has been added to a TextFlow object (Text Layout Framework) has run to the end of the container that is flowing into. You may have linked containers that you are flowing a load of lorem ip...
0
1158
posted 14 years ago by LeeProbert
split_to_chunks splits the string up into an array with elements containing 140 characters <b>or less</b>. This enables you to keep words intact when sending automated twitter messages.
$to is needed in order to subtract from 140 the amount of cha...
0
1044
posted 14 years ago by s0l1dsnak3123
The FontsManager class has embedded fonts in it. This is not a TLF class.
0
898
posted 14 years ago by LeeProbert
The issue appears in various places, but likely has something to do with "having layout" and is typically seen as extra whitespace between <li> elements.
0
1119
posted 14 years ago by Jamie
You can change your dynamic binding eval text with this method.
This method should be in same codebehind
0
804
posted 14 years ago by emregulcan
JavaScript
jQuery LimitCharWidth: Allows you to collapse the inner text so that it adjust into specific width.
This plugin allows you to collapse the inner text so that it adjust into specific width or container width.
1
1084
posted 14 years ago by jaff
Grant Skinner's RegExr: Online Regular Expression Testing Tool is very handy for checking your regular expressions.
http://www.gskinner.com/RegExr/
0
1703
posted 14 years ago by adrianparr
Con esta funcion podemos recortar una cadena de texto indicandole cuantos caracteres queremos que tenga y ademas no cortara la ultima palabra.
0
669
posted 14 years ago by jacinmontava
I wrote this really quick and dirty script to paginate a very large chunk of text. A client site was setup with the understanding their about page would consist of 5-6 paragraphs but their biography ended up being 60 paragraphs. At the end of the d...
0
730
posted 14 years ago by aristoworks