|
From: Richard G. M. <rg...@fa...> - 2001-03-22 23:36:13
|
Gee, and I went and wrote my own routine (left over from abn old
editor)...
if ThisPageRec^.PageUnix then begin
with CurrentMemo do begin
AssignFile(F, CurrentFileName);
try
ReWrite(F);
for i := 0 to lines.count -1 do begin
Write(F, lines[i]);
Write(F, #10);
end;
finally
CloseFile(F);
end; //try
end;
end
Didn't even know about DosFileFormat. 'Course, I can't slap myself for
not readin the docs, since there aren't any...
Just proves the value of lurking on the list.
Richard Minutillo
rg...@fa...
Jeff Rafter wrote:
>
> Ricardo,
>
> >Is Posible save the files in Unix Format ever ?
>
> Currently during editing SynEdit "normalizes" all line ends to #13#10
> (Windows/DOS style) while editing. However, when a file is loaded it's line
> end style is remembered. This is stored in the list property
> "DosFileFormat". If you set this to false the #13 character will not be
> written when the file is saved.
>
> uses SynEdit, SynEditTextBuffer;
>
> (SynEdit.Lines as TSynEditStringList).DosFileFormat:= False;
>
> Good Luck
> Jeff Rafter
> Defined Systems
>
> _______________________________________________
> Synedit-devel mailing list
> Syn...@li...
> http://lists.sourceforge.net/lists/listinfo/synedit-devel
|