Документ взят из кэша поисковой машины. Адрес оригинального документа : http://mavr.sao.ru/hq/sts/linux/doc/nedit/macro/1/1-06.shtml
Дата изменения: Unknown
Дата индексирования: Fri Dec 28 20:25:03 2007
Кодировка:

Поисковые слова: apollo 11
NEdit.org

.
.   
NEdit.org
   .

Home
 - News - Download - Documentation - Search - FTP     
.
.
  

Select word/line/file

[Back]

Acts like the clicking mouse. For best results, bind to Shift+Return.

if ($selection_start == -1)
   $select_level = 1

if ($select_level == 1)
{
   # select word

   forward_word()
   backward_word()
   start=$cursor
   end = search("\t| |$", $cursor, "regex")
}

if ($select_level == 2)
{
   # select line

   start = search("^", $cursor, "regex", "backward")
   end = search("$", $cursor, "regex")
}

if ($select_level == 3)
{
   # select file

   start = 0
   end = $text_length
}

if ($select_level == 4)
{
   $select_level = 0
   start = $cursor
   end = $cursor
}

$select_level++
select(start,end)
You may want to add $select_level=0 to your .neditmacro file.

[Back]


. Released on  Wed, 21 Nov 2001  by C. Denat  

  
Visit our sponsor
Check Metrolink

© NEdit.org
1999-2001
All rights reserved


.