Welcome To Snipplr
Everyone's Recent Snippets Tagged text
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Very simple and basic TextHandle class, extends TextField... You can extend to fit your needs.
Basic usage:
var a:TextHandle = new TextHandle("some text");
addChild(a)
Optional params:
_size: uint ( default 22 ) - size of the textfiled...
1
850
posted 13 years ago by burnandbass
This snippet simply makes the text wrap when it reaches the walls of its container, in this case, the pre tag, whilst still preserving line breaks and white space cross browser.
0
704
posted 13 years ago by paul66
This help you cutting text without cut the last word. Any feedback appreciated!
0
640
posted 13 years ago by alesma
Returns a circle filled with textfields with your text. fully customizable. See the actionscript comments for usage
2
730
posted 13 years ago by withinmedianl
This snippet will replace any "&" within the text of the container your specify with a <span> that you can target with CSS; fancy!
0
587
posted 13 years ago by dtigraphics
Searches down the current directory every file whose name matches (case insensitively) {{file_pattern}} for the regexp {{text}}.
0
724
posted 14 years ago by jarnaldich
This script parses the entered text and it gets all URLs from the text. It will then shorten those URLs and replace the long URLs with shortened ones in the text.
If you need only the Shortener Services script, take a look at this snippet <a href="h...
1
995
posted 14 years ago by stamba
This regular expression used in Ruby will extract the characters between single or multi-character delimiters. It helps when you have strange delimiters such as \":delimeter1: text I want to grab goes here :delimiter2:\"
0
849
posted 14 years ago by webonomic