multiline

android ellipsize multiline textview

I need to ellipsize multiligne textview. My component is large enough to display at least 4 lines with the ellipse, but only 2 lines are displayed. I tried to change the minimum and maximum number of rows in the component but it changes nothing ...

Use Tab-key on a multiline text filed in swt?

How do I prevent a multi-line text field from "stealing" tab-key presses? I mean: I'd like to use TAB to cycle between the elements of a window, but when I enter the multiline text, TAB becomes a "normal" key, and simply inserts tabulators into the text I'm typing. How do I handle this? Should I write some custom listener, or can I cha...

How to grow a textbox to match size of input for data entry dynamically (ASP.NET)

Hi, I'd like to add a description field to an application that can be as long as several lines (or even paragraphs) or as short as a one-liner. Instead of taking up a lot of screen real estate or have scroll bars, it would be preferable to have the textbox grow based on its input. On IE6 adding Style="overflow-y:visible" accomplishes...

How to display a text multilined inside a cell of a table in iphone?

I am new to iphone development.I am parsing a xml file and displaying the title, date, view and summary in each row of a table.The contents of summary is big ,so only first 3 words are displayed in the cell. I increased the height of the row.Still 3 words are displayed in my cell.How summary should fit properly inside the cell and full c...

WPF Display formatted multiline text using data binding

I need to display the following using WPF databinding (the values change). Headers must be bold, the info lines are normal text. If info for a given header does not exist, I want to collapse that section, including the header. I prefer all the data (header and info items) be in one formatted string that can line break where I want. Hea...

regular expression for line length and multiline input

Hi I have tried to create a regular expression that would match if the input text has max 3 lines of text, at most 10 characters per line, and characters are all uppercase. So this string should match: "AA\n\nAA" but this shouldn't "A12c" I thought this would work: (I enabled multiline in Pattern) (^[A-Z]{0,10}$){0,3} but it doesn'...

flex linkbutton text to span 2 lines

is there a way to span the text of a link button to 2 lines? so instead of "Save Page" to be in one line only, I want it to be in 2 lines. Thanks. ...

Regular expression multiline validator

Hi! I believe it is a simple question. :) In my ASP.NET Web Form I have a multiline TextBox which should be validated with RegularExpression Validator. Text box should contain one ore more strings "a" (just 'a' char, nothing else). So far I got these regular expressions for my RegularExpressionValidator object: (?m:(^a$)+) (?m:\A(^a$...

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...

Is there a multiline in SASS?

I couldn't figure out that from SASS documentation. For example I would like to use Compass mixin with 5 parameters: =link-colors(!normal, !hover = false, !active = false, !visited = false, !focus = false) I would like to declare 5 constants with semantically understandable names like those: !top_line_navigation_link_normal_color = ...

Multiline strings in JSON

Hi, I'm writing some data files in JSON format and would like to have some really long string values split over multiple lines. Using python's JSON module I get a whole lot of errors, whether I use '\' or '\n' as an escape. Is it possible to have multi-line strings in JSON? It's mostly for visual comfort so I suppose I can just turn wor...

Match multiline regex in file object

How can I extract the groups from this regex from a file object (data.txt)? import numpy as np import re import os ifile = open("data.txt",'r') # Regex pattern pattern = re.compile(r""" ^Time:(\d{2}:\d{2}:\d{2}) # Time: 12:34:56 at beginning of line \r{2} # Two carriage return ...

Multiline values in dropdown (ComboBox)

Is there are any libraries to make ComboBox to select multiline options when expanded. I am looking something similar to Combobox in ExtJS except values have to appear when user clicks down arrow, like in normal dropdown. Does someone know if its possible to do something like that with ExtJS? Because their own community and support sur...

XML multiline comments in C# - what am I doing wrong?

According to this article, it's possible to get multiline XML comments -- instead of using ///, use /** */. This is my interpretation of what multiline comments are, and what I want to have happen: /** * <summary> * this comment is on line 1 in the tooltip * this comment is on line 2 in the tooltip * </summary> */ However, when ...

Correct way to put long function calls on multiple lines

I have a long function, as seen below: hash_correct = hashlib.md5(salt + password)).digest().encode("base64") I'd like to split it up into two lines but am not sure of the correct way to do this in Python? Thanks. ...

How to get multi line text on a button in Android?

I'm looking for a simple way in Android to add a text to a button that is displayed in 2 (or more) lines. E.g. A bold and big heading in the first line and a small description in the second line. Is it possible or have I use a TextView or something similar? ...

Multiline for WPF TextBox

I am developing a app for sending some feedback. Basically i'm trying to make a TextBox for comments, but i'm used to the WinForms MultiLine=true. I've set MinLines to 3, which is getting there, but preferably i'd like if user is able to type wherever in this block, like press enter and do dot points sort of thing - like: - Item 1 ...

multi-line pattern matching in pyhon

A periodic computer generated message (simplified): Hello user123, - (604)7080900 - 152 - minutes Regards Using python, how can I extract "(604)7080900", "152", "minutes" (i.e. any text following a leading "- " pattern) between the two empty lines (empty line is the \n\n after "Hello user123" and the \n\n before "Regards"). Even bet...

How to get multiline for a Jlist text?

I have a problem in get mutiline for Jlist ! Do you have any idiea? ...

delete multi-line block of text with internal flag in povray file

I have a pov-ray file, which defines a lot of cylinders and spheres. Sometimes these shapes are defined to have "color@", which makes the povray unrenderable. One solution I've found is to delete the offending cylinders and spheres. So a file that contains this text cylinder { < -0.17623, 0.24511, -0.27947>, < -0.15220, ...