File viewer

CudaText has internal file viewer, for files on unlimited size. Only visible portion of file is loaded into memory, so viewer is fast for all files. Viewer has several modes:

  • Text: 1-byte encoding, variable line length
  • Binary: 1-byte encoding, fixed width (line breaks are ignored)
  • Hex: 1-byte encoding, fixed width
  • Unicode: like Text, but in UTF-16 encoding
  • Unicode/Hex: like Hex, but in UTF-16 encoding

CudaText suggests to use viewer for files of too big size (bigger than option "ui_max_size_open"). And for files with binary contents.

Viewer has simple search support (without reg.ex.), and allows to use "Go to" dialog. In the "Go to" dialog, you can enter "2000" to jump to hex offset 0x2000 (in hex mode, rounded to 16 bytes). If you enter "50%", viewer will jump to the middle. Viewer supports selection of block by mouse, and hotkeys Ctrl+A, Ctrl+C. Viewer supports double-click to select whole word.

In viewer mode, you can click statusbar fields:

  • Encoding field. You can change viewer encoding only in non-Unicode modes.
  • Mode field, to change view mode: Text, Binary, Hex, Unciode, Unicode/Hex.