multi-line

How do I set a textbox to multi-line in SSRS?

I have a report with many fields that I'm trying to get down to 1 page horizontally (I don't care whether it's 2 or 200 pages vertically... just don't want to have to deal with 2 pages wide by x pages long trainwreck). That said, it deals with contact information. My idea was to do: Name:        Address:   City:        State:  ... Jon D...

What's the simplest way to return the first line of a multi-line string in Perl?

When I say simple, I mean, within an expression, so that I can stick it in as a value in a hash without preparing it first. I'll post my solution but I'm looking for a better one that reminds me less of VB. :) ...

How can I delete characters between < and > in Perl?

I need to write a Perl script to read in a file, and delete anything inside < >, even if they're on different lines. That is, if the input is: Hello, world. I <enjoy eating bagels. They are quite tasty. I prefer when I ate a bagel to when I >ate a sandwich. <I also like >bananas. I want the output to be: Hello, world. I ate a sandwic...

Replace block of text in vs2008

Hi All, is there any way how to replace block of text (multi-line) in VS2008(VS2005)? So far I know VS2008 supports only single line replacing. Any tips welcome, cheers X. EDIT: thanks for tips guys. I was rather looking for some simplier option: like select multiline text, click Ctrl+H, Ctrl+V (copy text from memory) and hit Repla...

Best syntax to create multi-line string

Hi! What's the best way to create multi-line string in C#? I know the following methods: Using StringBuilder var result = new StringBuilder().AppendLine("one").AppenLine("two").ToString() looks too verbose. Using @ var result = @"one two" looks ugly and badly formatted. Do you know better ways? ...

Best way to split string into lines

Hi! How do you split multi-line string into lines? I know this way var result = input.Split("\n\r".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); looks a bit ugly to me and it looses empty lines. Do you know better solutions? ...

How to do multiline search using regular expression?

I am new to regular expressions. I want to do multiline search. Here is the example of what I want to do: Suppose I have following text: *Project #1: CVC – Customer Value Creation (Sep 2007 – till now) Time Warner Cable is the world's leading media and entertainment company, Time Warner Cable (TWC) makes coaxial quiver. Client ...

Are Multiline macros in GCC supported.

Hello, Are multi-line macros supported(compilable) in gcc version 3.2.4. I am trying to build my source which has multi-line macros on a linux host using above mentioned gcc version. I get compilation error at the macro, which is multiline. #define YYCOPY(To, From, Count) \ do \ { ...

Xslt and multi-line text (Sitecore)

I have a field in item (multi-line text) which i output in my xslt rendering. The problem is that carrigae return are not shown in my output - what do i need to do to make my xslt output show the carrigae returns? ...

C multi-line macros

Possible Duplicate: Whats the use of do while(0) when we define a macro? Why do people use do { statement1; statement2; statement3; etc; } while(0); instead of the shorter form {stmt1; stmt2; stmt3; etc; } in C multi-line macros? ...

sed or awk multiline replace

Hi guys, I am trying to append formatting to all /* TODO : ... */ tags, but I am having trouble in the multi-line area. I can do single line sed's; but for multiline sed and awk, I don't know. How do I do this? I'm open to either. Here's what I have so far. sed 's/\/\/\*[ \t]*TODO[ \t]*:.*/*\//<span style="color:#aaaaaa;font-weight:bo...

new line in a multi-line string

Trying to override a tostring in one of my classes. return string.Format(@" name = {0} ID = {1} sec nr = {2} acc nr = {3}", string, int, int ,int); // types But the thing is, the result isn't aligned when printed out: name = test ...

PHP <<< (multi-line handler?) question

I have some code as follows: $query = <<<QUERY SELECT * FROM names WHERE create_date > date('Y-m-d H:i:s'); QUERY How can I put the date('Y-m-d H:i:s') in there without breaking out of the <<< statement? ...

Python multi-line input

Is there any way to have multi-line input in Python? Solutions I have seen don't allow you to edit past lines after you have pressed enter and have other problems. I am making a simple text editor in Python and I want to have a text input that can be multiline and pressing buttons like left or right would move the text cursor. I need it ...