text

jquery strange problems with class=hide and white text

Hi, As the title states, Jquery is turning my text white in certain areas of the page. it cant be the im using to encapsulate the ajax call, because it works fine when im not calling the ajax Its a bit difficult to post the whole script, because its huge and i dont know where its happening. I have no idea how to debug this using fire...

as3 text formatting, Underline spacing?

So if I want to imitate a link in as3, when I set myFormat.underline = true; the underline is directly underneath my text. Is there any way I can set the spacing of that underland? Thanks. ...

I can I separate multiple logical pages in a text file I create in Perl?

So far, I've been successful with generating output to individual files by opening a file for output as part of outer loop and closing it after all output is written. I had used a counting variable ($x) and appended .txt onto it to create a filename, and had written it to the same directory as my perl script. I want to step the code up a...

Drawing strings in OpenGL

What's the quickest, easiest way to draw text in standard OGL ?? ...

Problem with Freetype and OpenGL

Hey, i'm having a weird issue with drawing text in openGL loaded with the Freetype 2 library. Here is a screenshot of what I'm seeing. Here are my code bits for loading and rendering my text. class Font { Font(const String& filename) { if (FT_New_Face(Font::ftLibrary, "arial.ttf", 0, &mFace)) { cout << "UH OH...

Raphael JS library how to disable text shift on multi-line

Hello, By default when adding text object to paper Raphael javascript library centers text around y point. It basically takes the height and divides it by 2 and attaches text to the new y coordinate. I'm looking for a different behavior where text stays at the same coordinate even when you add multi lines. I was wondering if anyone ha...

my first iPhone app and i'm stuck.

hello all. i've decided to give this iPhone App development a kick. to help add perspective to this i've never programmed in any form of C or for any anything on the Mac other than Applescript. i've created plenty of solutions using blends of Applescript, Classic ASP, Perl, even PostScript. i'm home brewed so i don't understand all the m...

Is it possible to get pixel coordinates of text and draw a rectangular border around it using Javascript?

Dear all, I am evaluating technology options for an upcoming project, and one of the requirements is to draw a rectangle around certain groups of words in a text field. Each time the text is evaluated and parsed, certain recognized parts of it must be boxed with a rectangle, which should also respond to mouse clicks. There is even a re...

How to print one array of a multidimensional array in Perl?

#!usr/bin/perl @array = (); open(myfile,"sometext.txt"); while(<myfile>) { chomp; push(@array,[split(" ")]); } close(myfile); print @array[0]; Instead of printing the elements of the first array in this multidimensional array, it outputs the hexadecimal(?) pointer reference. If anyone knows how I can print this array, please po...

mvc formatting text

i have text like this div bla-bla end div i need to get only 'bla-bla' without div, because of i need to call substring in controller only to text bla-bla not to div tags. is it possible p.s. how to input tags here? ...

after quitting VIM editor I am not able to see the original screen contents that were present before entering vim

I want to see the original contents of screen after quitting vim as they were before opening a file , as of not my file quits but the original display is not there THanks ...

Fast method to find regex matches in a large document using javascript?

I need to search the text in a HTML document for reg-exes(emails, phone numbers, etc) and words. The matches need to be highlighted and be made anchor-able so that a link can be generated to jump to the location of the matches. So not only does it need to find matches using patterns in needs to do a replace do add the proper html code. ...

Text Color in PowerPoint Add-in

Does anyone know how to change the color of a selected range of text within a powerpoint add-in using C#? ...

Case Sensitivity In Perl Script - How Do I Make It Insensitive?

How would I change the following markov script to treat capitalized and lowercase words as the same? The entire idea is to help increase the quality of output of my markov text generator. As it stands, if you plug 99 lowercase sentences into it and 1 capitalized sentence - you almost always find a non-markovized version of the capitali...

Extracting Cell Text into a Separate Excel Worksheet

I have several models that will need to be translated to other languages and I want to put all text strings on a separate tab so they are all together. I need a utility/tool to locate standalone and embedded text strings, move them to another tab, and replace the original text string with the cell reference to the new location. A bonus ...

layout problem: keeping a fixed width in CSS with varying text

The "span" tag that encompasses the text I'm trying to display is of 500px width. Now, every time I insert a text longer than that width, it crosses over to complete the text. That only happens when the text has no spaces (like: sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss you get the picture. I'...

Syntax aware selection in XCode?

Since moving to XCode I am desperately missing a text macro I have used in many other editors which I use all the time. Basically what it does is that everytime you invoke it, it selects text in an expanding scope. Here is IntelliJ's definition of the functionality: Syntax aware selection Ctrl+W (select word) in the editor selects ...

Get text from a reapeater object - flex

I have a label that is using a repeater to get information form a database. Now I'm trying to pass the information in that label to another label component, but I haven't had any luck. if I do a trace on the label in the repeater eg. trace (Gotid.text); I get this error in debug mode warning: unable to bind to property 'user_name' o...

Java library that enables ${var} substitution

Does anyone know of a Java library that provides support for the ${var} style substitution in text files? ...

FileStream and Encoding

I have a program write save a text file using stdio interface. It swap the 4 MSB with the 4 LSB, except the characters CR and/or LF. I'm trying to "decode" this stream using a C# program, but I'm unable to get the original bytes. StringBuilder sb = new StringBuilder(); StreamReader sr = new StreamReader("XXX.dat", Enco...