Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.sao.ru/hq/sts/linux/doc/nedit/macro/1/1-13.shtml
Дата изменения: Unknown
Дата индексирования: Sat Sep 11 22:14:30 2010
Кодировка:
NEdit.org

.
.   
NEdit.org
   .

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

Place selected text at top of window

[Back]
start_byte = $selection_start
if ($selection_start == -1) {
    start_byte = $cursor
}

# Count the number of new lines from the beginning
# of the file to the beginning of the selection
nl = 0
for (i = 0; i <= start_byte; i++)
   {
      if (get_character(i) == "\\n")
         {
         nl++
         }
   }

# position the line containing the beginning of the selection
# at the top of the pane
scroll_to_line(nl+1)
[Back]

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

  
Visit our sponsor
Check Metrolink

© NEdit.org
1999-2001
All rights reserved


.