End-of-line options

Each line in a file ends with an EOL character (end-of-line character). In most text editors, this character is not visible. But you can make it visible if you need to. Unfortunately, the EOL character is not the same for Linux, Windows and Mac:

  • Windows       \r\n
  • Unix, Linux   \n
  • Mac           \r

EOL mode

The EOL mode is set with the function:
setEolMode(eol_mode)

  • EolWindows
    self.__editor.setEolMode(QsciScintilla.EolWindows)
     
  • EolUnix
    self.__editor.setEolMode(QsciScintilla.EolUnix)
     
  • EolMac
    self.__editor.setEolMode(QsciScintilla.EolMac)
     

EOL visibility

The EOL visibility is set with the function:
setEolVisibility(visibility)

  • False
    self.__editor.setEolVisibility(False):

     
  • True
    self.__editor.setEolVisibility(True):