text

In the Eclipse text editor, how can I reformat / fill / justify a paragraph to 80 characters wide?

When editing text files in Eclipse, for instance, a README file, I have not yet found a way to get the editor to reformat paragraphs of text so that they fit in a reasonable width (typically 80 characters). This seems like it should be a very common thing to want to do, but I haven't found it. Can anyone help? Note that I'm not talking ...

Trying to group similar text rows in a column of a million row table - Open to Non-MySQL approaches

I have a large number (about 40 million) of VARCHAR entries in a MySQL table. The length of the string can be anywhere between 5-80 characters. I am trying to group similar text together and thought of a possible approach: Take a row and calculate a similarity measure (like Edit Distance) with every other row and decide (I am not sure h...

selecting text issue on Flex text area component

I have this really strange issue, and I don't expect much of a response here, but thought I would give it a shot. I have a flex textarea component, controlled by a custom scrollbar. The textarea is loaded when a list of buttons is clicked on, different buttons bring in different text content depending on which button is clicked. Every...

Advanced Tkinter text box?

I am working on a simple messaging system, and need to add the following to a Tkinter text box widget: 1) Spell Check 2) Option To Change Font ( on selected text ) 3) Option to change font color ( on selected text ) 4) Option to Change Font Size ( on selected text ) I have used Google to try and find examples or modules I could use, ...

How do I underline text in Perl Linux?

Is there a way to underline the text is a perl output script? I have read from several sources but the text in the scripts can't be underlined. An error outputs: Global symbol "$finalAddition" requires explicit package name at C:\Documents and Settings\PCS\Desktop\Perl Scripts\script.pl line 7. The Script Codes: #!/usr/bin/perl use ...

Converting Wikitext to plain text in Java

Any script available for converting Wikitext to Plain text? I prefer it implemented in Java. Thanks! ...

Configurable Content System in ASP.NET

I need to design a configurable content system for all of the text in our web application that will tie together our need for Translation with the ability for Groups of users, Subgroups of users, and single Users to configure what a given label, Error Message, or piece of system text says. Because everything needs to be configurable th...

How do I check if a file is text-based?

I am working on a small text replacement application that basically lets the user select a file and replace text in it without ever having to open the file itself. However, I want to make sure that the function only runs for files that are text-based. I thought I could accomplish this by checking the encoding of the file, but I've found ...

Finding line-wraps

Supposing I have some random block of text in a single line. Like so Lorem ipsum dolor sit amet, consectetur adipiscing elit. But for whatever reason (width settings on the containing element, use of text-zoom etc.), on the viewer's screen it displays as two or more lines. Lorem ipsum dolor sit amet, consectetur adipiscing elit. or ...

Rails: Place text on page

Ruby doesn't seem to have any method to convert my text to HTML before putting it on the page, so newlines do not appear. What am I missing? ...

Inserting inline JComponents into a JTextPane?

Hello, I'm working on a project that needs to be able to have JComponents inserted into a JTextPane, along with normal text. Currently, I'm using JTextPane.insertComponent(Component) to add the JComponents, however, they seem to be added sporadically with no real organization. I finally figured out that it's inserting it wherever the car...

text orientation flexgrid

Hello guys Is there anyway to align the text in msflexgrid in vertical orientation like excel does? thanks ...

css - hiding overflow

Hello, Is it possible to hide the overflow of the text in say a fixed width div and replace it with "..."? It obviously looks ugly if the text is just cut off, I really need to be able to show a ... in these cases. ...

Reading the whole text file into a char array in C

Hi, I want to read the contents of a text file into a char array in C. Newlines must be kept. How do I accomplish this? I've found some C++ solutions on the web, but no C only solution. Thanks! Yvan Edit: I have the following code now: void *loadfile(char *file, int *size) { FILE *fp; long lSize; char *buffer; fp =...

Style a JTextPane to have console-like formatting?

Is there a way to make the text in a JTextPane look similar to that of console output? By that I mean, basically, how each character is the same width, so that things like ASCII art, or spacing indentation would work correctly. For example, currently, if I type "First" and then 5 spaces, and then on a new line "Second" and then 4 spaces...

Put text into non-active Axes in MATLAB

Most MATLAB plotting commands allow you to specify which axes to act on, for instance plot (x,y) plots in the current axes, but plot(Ax, x, y) will plot in the axes Ax. Similarly, you can label the x- or y- axis of a non-active axes xlabel(Ax, 'this label goes on the x-axis of Ax whether or not Ax == gca') But the text comman...

Reading a specific line of a file

What is the best way (better performance) to read a specific line of a file? Currently, I'm using the following command line: head -line_number file_name | tail -1 ps.: preferentially, using shell tools. ...

Android - main app button text question

Hi all.. I'm very new to Android development and not sure yet how to solve this issue... Is there a way to have the app launch button text set as a certain string, but the app text bar (horizontal bar accross the top of the app) set as something different? For example, say my app button is labeled "MyApp". Right now, the bar across t...

When did it become OK to use UTF-8?

When did people start using UTF-8 in files encoding and HTTP Content-Type headers? Since all web servers, OSes, text editors and browsers support it today, when did it become "compatible" between these? ...

Add Multi line text field to sharepoint

Hi, I am trying to add a multi-line text field to a document within Sharepoint but can't currently figure out how to do it. Below is the code i have which works for most of the fields. SPFile file = folder.Files.Add(*snip*); file.Item[guid] = stringValue; file.Item.SystemUpdate(true); The document adds with no issues the ...