Re: edsharp question

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Sat, 12 Jan 2008 09:08:26 -0500 (EST)

You can use \n for a line break.  \r\n is not necessary because EdSharp
uses a single character internally, but then substitutes the pair of
characters \r\n when saving to the clipboard or a file on disk.

The strings in the search or replace edit boxes of the Replace dialog
use JavaScript syntax, similar to the C language.  The \ character has
special meaning, enabling nonprintable characters to be represented.
Besides \n for a line feed, you can use \t for a tab character or \f for
a form feed.  You can also use either octal or hex notation to specify a
character by its ANSI code.  For example, capital A is decimal 65, octal
101, and hex 41.  You could specify \101 or \x41.  Of course, it is
easier to type A, but such notation is useful for nonprinting
characters, or characters that are not inserted by an available keystroke.

I think you can even input a Unicode character with the syntax \unnnn (the
letter u followed by a four digit number).

The trade off for this flexibility is that a backslash character intended
literally should be doubled as \\.

Jamal

On Sat, 12 Jan 2008, Peter op 't Hof
wrote:

> Date: Sat, 12 Jan 2008 13:24:08 +0100
> From: Peter op 't Hof <opthofp@xxxxxxxxx>
> Reply-To: programmingblind@xxxxxxxxxxxxx
> To: programmingblind@xxxxxxxxxxxxx
> Subject: edsharp question
>
> Hi,
>
> For some days i use Edsharp and am very exided about it.
>
> I have one question.
> If i want to use a cr or crlf in a replacement shout i press ctrl-M or 
> something
> else?
>
> Pressing Enter which works in other editors works, but perhaps there is chosen
> an other approach?
>
> Thanks in advance.
>
> Peter.
>
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/programmingblind
>
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: