Editor EOL


How do I get the EOL character of an editor? editor.invisibles.eol is just the invisible representation of the line return.


There is currently no documented API for this, but you can find the functions here:

Because these are undocumented, they may change at any time.


While a document API method would be best, this is a good start, thanks!


I was curious to see if the null default meant it would return a null if the prefered line ending was the default, and sure enough it does :cry:

It seems, since there is no document API call, that there is no way to always get the exact EOL character back. Time for a feature request!