Документ взят из кэша поисковой машины. Адрес оригинального документа : http://jet.sao.ru/hq/sts/linux/doc/nedit/macro/4/4-06.shtml
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 10:41:26 2012
Кодировка:
NEdit.org

.
.   
NEdit.org
   .

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

Expand then print

[Back]

Pipes the selection or file through expand before sending it to the printer.

if ($selection_start == -1)
{
   p = dialog("Print file on:", "fir", "lwself", "Cancel")
   save()
}
else
   p = dialog("Print selection on:", "fir", "lwself", "Cancel")

if (p==1) pn="fir"
if (p==2) pn="lwself"

if (p < 3 && p > 0)
{
   if ($selection_start != -1)
      shell_command("expand -"$tab_dist" | lpr -P"pn" -J "$file_name" (selection)", get_selection())
   else
      shell_command("expand -"$tab_dist" | lpr -P"pn" -J "$file_name, get_range(0, $text_length))
}
[Back]

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

  
Visit our sponsor
Check Metrolink

© NEdit.org
1999-2001
All rights reserved


.