2009/11/20 Martin McClure <[email protected]>:
> IMO, a useful behavior for a text file editor is to:
>
> * On open, detect the line end convention of the file and remember it.
> This is not too hard to do as long as the file is in fact a text file
> (if it's a binary file you shouldn't be using a text editor on it).
>
> * On save, save in the same line end convention that the file previously
> had.
>
> * On "save as" provide the opportunity to change the line end convention
> as well as the file name.
>
> * New files should default to the platform's line end convention, but
> again be overridable on save.
>
+1
exactly what i want.
+ detect if file starting with BOM character, then use utf-8 decoding.

> Regards,
>
> -Martin
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



-- 
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to