word-wrap

Best word wrap algorithm?

Word wrap is one of must-have features in modern text editor. Do you know how to handle word wrap? What is the best algorithm for word-wrap? updated: If text is several million lines, how can I make word-wrap very fast? updated: Why I need the solution? Because my projects must draw text with various zoom level and simultaneously bea...

How can I get word wrap to work in Eclipse PDT for PHP files?

Programming PHP in Eclipse PDT is predominately a joy: code completion, templates, method jumping, etc. However, one thing that drives me crazy is that I can't get my lines in PHP files to word wrap so on long lines I'm typing out indefinitely to the right. I click on Windows|Preferences and type in "wrap" and get: Java | Code Style ...

Multi-line label in RadioButton component (AS3)

I'm making a small quiz-application in Flash (and ActionScript 3). Decided to use the RadioButton-component for radiobuttons, but I'm having some problems getting the word-wrapping to work. The code for creating the button can be found below. _button = new RadioButton(); _button.setStyle("textFormat", _format); _button.label = _config....

How can I toggle word wrap in Visual Studio.NET?

Does Visual Studio .NET have a way to toggle word-wrap on and off? I am used to this feature in Eclipse which allows you to right click and toggle word wrap on and off so that when you have long lines that extend out to the right, you don't have to move the bottom scroll bar right and left to read your code/html: http://ahtik.com/blog/2...

Change the tab size on an element with word-wrap: pre?

I have an element that is similar to a tag (because it has word-wrap: pre;) to display code on a website. The only problem is that the tab size is too large and causes the element to horizontally scroll often because it is of fixed width. Is it possible to change the tab size? ...

Force textblock to wrap in WPF listbox

I have a WPF listbox which displays messages. It contains an avatar on the left side and the username and message stacked vertically to the right of the avatar. The layout is fine until the message text should word wrap, but instead I get a horizontal scroll bar on the listbox. I've Googled and found solutions to similar issues, but no...

Algorithm for re-wrapping hard-wrapped text?

Let's say that I have written a custom e-mail management application for the company that I work for. It reads e-mails from the company's support account and stores cleaned-up, plain text versions of them in a database, doing other neat things like associating it with customer accounts and orders in the process. When an employee replies ...

Do you use word wrapping within emails?

I'm wondering if word wrapping should be applied in text emails? And what about HTML emails? If so, what character would you normally wrap at? ...

How do you get vim to display wrapped lines without inserting newlines?

I'm getting back in touch with my inner (g)vim due to an unscheduled MacBook mother(board) of a meltdown (my emergency backup Linux box won't run TextMate). All told I'm happy with vim's efficiency and power, but I'm mortified at how hard it is to get the kind of word wrap that even stupid HTML textareas achieve with no apparent effort. ...

CSS word-wrapping in div

Hi, I have a div with a width of 250px. When the innertext is wider than that i want it to break down. The div is float: left and now has an overflow. I want the scrollbar to go away by using word-wrapping. How can i achieve this? <div id="Treeview"> <div id="HandboekBox"> <div id="HandboekTitel"> <asp:Label ID="lblManual" ...

How do you enable word wrap in vim when printing

I wanted to print a simple text document and make sure words wrap on word boundaries. I tried both set linebreak and set wrap but when printing, it just breaks on the right column in the middle of words. Is this possible for printing? ...

how to get a Flex text control to word wrap

I'm creating an Adobe Flex application and I have a Text control (mx:Text), which is supposedly used when you need multiline noneditable text (as opposed to a Label, which is single line noneditable text). My text control does not wrap when I resize the browser window to be smaller than the text (or load it with the browser window alrea...

Flex 3 togglebuttonbar word wrap

How do you word wrap the text in the buttons that are part of a togglebuttonbar? I have the following structure: what i find is that the words on the button text just continue and there seems to be no wordwrap setting on any of the various components. Any thoughts would be very welcome. Thanks, S ...

how remove wordwrap from textarea

hi there, my simple textarea doesn't show horizontal bar when text overflow, it wrap text for a new line, so how remove wordwrap and display horizontal bar when text overflow ? god bless! ...

Word wrap in Gvim

How do I make Gvim word wrap in such a way that doesn't break words in the middle? ...

Best way to determine word wrap of a NSString in a UILabel

I have a line like: -Image- This is simply a test -Image- but I want to know how to separate the two lines. What to do here? The best way I could figure to implement on the iPhone is: UIImageView UILabel1 UILabel1 UILabel2 If there's an easier way to do this with the UI elements - i'm all ears. Otherwise, I'm...

Java Graphics cannot change Font

Hello, I am trying to do a custom painting using the Graphics object. I want to paint the text in word-wrap style, so i used some example code i found somewhere on this page. My problem is that i cannot change the font-size in any way. Please help me, I attached the executable source code below. Thanks Chris import java.awt.Color; i...

Word wrap in Windows Forms (vb.net)

hai how to do word wrap in drawstring in vb.net 2005. please tell me ...

Wordwrap Win32

Hello all :) I'm trying to wordwrap a block of text for display in a window that would otherwise be too long. The font I'm using is not a fixed width font, so GetSystemMetrics will not return accurate values for my text. Using a static window is not an option here because a static window doesn't tell me one crucial piece of information...

Floating an image right and left in text box weird spacing in IE

My example is here The logos look fine when told to align right or left in FF and they seem to wrap properly with the text, but in IE a huge gap shows up after the first line of text. I have also created float right and left styles and tried to apply to the logos but got the same effect. I know this is an issue in IE, but I haven't fou...