Sign in Join
Wiki copytemporary

File types: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

Title: File types file types

OldNewLine
1-There are several options for file processing.
1+This page is a summary of the file types created by FPC and Lazarus. The main purpose is to make it easy to find out whether or not a particular file should be added to a Version Control System (VCS) like SVN or Git.
22
3-## Binary file
3+## Types to add to VCS
44
5-The binary file type is suitable for processing files of all types and sizes.
5+Extension
66
7-See [[binary file|Binary file]]
7+Description
88
9-## FileStream
9+.pas
1010
11-The FileStream is fast and is suitable for files of small and medium size.
11+Pascal source code file
1212
13-See [[TFileStream|FileStream]]
13+.pp
1414
15-## String list
15+Pascal source code file (useful if you want to avoid confusion with Delphi source code files).
1616
17-The string list is fast and is suitable for files of small and medium size.
17+.lfm
1818
19-See [[Stringlist|String List]]
19+Lazarus **f**or**m** source file. Analogous to Delphi's dfm files.
2020
21-## Typed file
21+.lpi
2222
23-The file type typed file is suitable for structured files of any size.
23+Lazarus **p**roject **i**nformation file. Created by Lazarus for every new project.
2424
25-See [[typed files|Typed file]]
25+.lpr
2626
27-## Untyped text file
27+Lazarus **pr**ogram (or **p**roject) file. The source code of the main program. Analogous to Delphi's dpr project file.
2828
29-The untyped text file type is suitable for files of any size.
29+.rc
3030
31-See [[untyped files|Untyped text file]]
31+A Windows resource file (not binary)
3232
33+.ico
34+
35+The main project icon in Windows icon format
36+
37+.manifest
38+
39+Windows-specific manifest file for themes
40+
41+## Types usually not added to VCS
42+
43+Extension
44+
45+Description
46+
47+.lps
48+
49+Lazarus **p**roject **s**ettings file. Created by Lazarus for every new project.
50+
51+.lrs
52+
53+Lazarus **r**e**s**ource file.
54+
55+.compiled
56+
57+FPC compilation state
58+
59+.o
60+
61+Object file
62+
63+.or
64+
65+Object file
66+
67+.ppu
68+
69+A compiled Unit file
70+
71+.res
72+
73+The result of compiling the rc file (binary)
74+
75+.rst
76+
77+Compiled resource strings. Used for L10n. If you intend to translate an application, this should probably be version controlled.
78+
79+## An example .gitignore file for Lazarus/Free Pascal
80+
81+[Lazarus.gitignore](https://github.com/github/gitignore/blob/master/Global/Lazarus.gitignore)
82+
3383---
34-*From the Free Pascal wiki, page "File types", as it stood on 2022-01-29 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
84+*From the Free Pascal wiki, page "file types", as it stood on 2019-12-16 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
85+Category: Lazarus

Back to history