DelphiDabbler CodeSnip
File Format Documentation

# Saved Files

## Introduction

CodeSnip saves external files in two different ways:

1. By saving snippets to file from the File | Save Snippet menu.
2. By saving units to file from the File | Save Unit menu.

In each case the following file types can be chosen by the user:

- Plain text.
- Pascal source files (either .inc or .pas files).
- XHTML files.
- Rich text files.

There is no specific file format for these files, except that XHTML and RTF files conform to published specifications.

## Encoding

The encodings used depend on the file type and user choice. Different file types have different encoding choices, as follows:

Plain text
  - ANSI (system default code page)
  - UTF-8
  - Unicode little endian (UTF16-LE)
  - Unicode big endian (UTF16-BE)
Pascal source files
  - ANSI (system default code page)
  - UTF-8
XHTML files
  - UTF-8
Rich text files (RTF)
  - ANSI (system default code page)

Files with UTF-16LE, UTF-16BE and UTF-8 encodings are saved with byte order marks.