Sign in Join
Wiki copytemporary

File extensions: what changed

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

OldNewLine
11Here are the [[File extension|file extensions]] that are used when developing programs in Pascal. In most cases, these are extensions used by the IDE (Lazarus) and the compiler (FPC).
22
33## Lazarus
44
55### Project files
66
77<thead>
88
99</thead>
1010<tbody>
1111
1212(2) Compiled code from other compilers (e.g. gcc) linked into a static library</td>
1313
1414</tbody>
1515
1616### Subversion or Git
1717
1818These files would normally be stored in a repository as an adequate description of a project:
1919
20-`*.lpi`\
21-`*.lpr`\
22-`*.lfm`\
23-`*.pas`\
24-`*.pp`
20+```text
21+*.lpi
22+*.lpr
23+*.lfm
24+*.pas
25+*.pp
26+```
2527
2628These files might contain manually-generated or imported information, or might be regenerated by the IDE or build process. In general, if they have the same basename as the project or a form or unit they're IDE-generated, but in all cases should be reviewed individually:
2729
28-`*.inc`\
29-`*.res`\
30-`*.lrs`\
31-`*.rc`\
32-`*.ico`
30+```text
31+*.inc
32+*.res
33+*.lrs
34+*.rc
35+*.ico
36+```
3337
3438These files are regenerated by the IDE or by a build so do not need to be stored:
3539
36-`*.ppu`\
37-`*.o`\
38-`*.a`\
39-`*.lps`\
40-`*.or`\
41-`*.rst`\
42-`*.compiled`
40+```text
41+*.ppu
42+*.o
43+*.a
44+*.lps
45+*.or
46+*.rst
47+*.compiled
48+```
4349
4450Note that *.lrj files are generated for every form while tracking i18n, loss of these files can cause missing translations.
4551
4652There is an example .gitignore file at [3](https://github.com/github/gitignore/blob/master/Global/Lazarus.gitignore).
4753
4854## [[Delphi]]
4955
5056### Project files
5157
52-`*.dfm`\
53-`   Delphi form module`\
54-`*.dof`\
55-`   Delphi project options file`\
56-`*.dsk`\
57-`   Desktop configuration`
58+```text
59+*.dfm
60+ Delphi form module
61+*.dof
62+ Delphi project options file
63+*.dsk
64+ Desktop configuration
65+```
5866
5967### Converting Delphi projects
6068
6169Lazarus can convert at least some Delphi project files into its own format.
6270
6371## Application
6472
6573### General
6674
67-`*.txt`\
68-`   Text file`\
69-`*.po`\
70-`   Gettext Portable Object`\
71-`*.bak`\
72-`   Backup`\
73-`*.cfg`\
74-`   Config file`\
75-`*.chm`\
76-`   Compiled Help File - contains html. See also package `[[chm]]\
77-`*.csv`\
78-`   Comma Separated Values text file format `\
79-`*.exe`\
80-`   Directly executable program`\
81-`*.hlp`\
82-`   Help file`\
83-`*.ini`\
84-`   Initialization file`\
85-`*.odt`\
86-`   OpenDocument text document`\
87-`*.pdf`\
88-`   Portable Document Format`\
89-`*.ps`\
90-`   PostScript `\
91-`*.rtf`\
92-`   Rich Text Format text file`
75+``` pascal
76+*.txt
77+ Text file
78+*.po
79+ Gettext Portable Object
80+*.bak
81+ Backup
82+*.cfg
83+ Config file
84+*.chm
85+ Compiled Help File - contains html. See also package chm
86+*.csv
87+ Comma Separated Values text file format
88+*.exe
89+ Directly executable program
90+*.hlp
91+ Help file
92+*.ini
93+ Initialization file
94+*.odt
95+ OpenDocument text document
96+*.pdf
97+ Portable Document Format
98+*.ps
99+ PostScript
100+*.rtf
101+ Rich Text Format text file
102+```
93103
94104### Image
95105
96-`*.png`\
97-`   Portable network graphic`\
98-`*.bmp`\
99-`   bitmap `\
100-`*.ico`\
101-`   icon `\
102-`*.xpm`\
103-`   pixmap `\
104-`*.ppm`\
105-`   portable pixmap `\
106-`*.pgm`\
107-`   portable graymap `\
108-`*.pbm`\
109-`   portable bitmap `\
110-`*.jpg`\
111-`   compressed image format standardised by the Joint Photographic Experts Group (JPEG)`
106+```text
107+*.png
108+ Portable network graphic
109+*.bmp
110+ bitmap
111+*.ico
112+ icon
113+*.xpm
114+ pixmap
115+*.ppm
116+ portable pixmap
117+*.pgm
118+ portable graymap
119+*.pbm
120+ portable bitmap
121+*.jpg
122+ compressed image format standardised by the Joint Photographic Experts Group (JPEG)
123+```
112124
113125### XML
114126
115-`*.xml`\
116-`*.dtd`\
117-`*.xsd`\
118-`*.xsl`
127+```text
128+*.xml
129+*.dtd
130+*.xsd
131+*.xsl
132+```
119133
120134### Web
121135
122-`*.html`\
123-`   Hypertext Markup Language`\
124-`*.css`\
125-`   Cascading style sheet`
136+```text
137+*.html
138+ Hypertext Markup Language
139+*.css
140+ Cascading style sheet
141+```
126142
127143### Archive
128144
129-`*.tar`\
130-`   tape archive`\
131-`*.zip`\
132-`   a single file containing one or more compressed files`
145+```text
146+*.tar
147+ tape archive
148+*.zip
149+ a single file containing one or more compressed files
150+```
133151
134152### Database
135153
136-`*.dbf`\
137-`   Database file`\
138-`*.mdx`\
139-`   Multiple index file`
154+```text
155+*.dbf
156+ Database file
157+*.mdx
158+ Multiple index file
159+```
140160
141161### [[FPSpreadsheet|Spreadsheet]]
142162
143-`*.ods`\
144-`   OpenOffice.org Calc spreadsheet File Format`\
145-`*.xls  `\
146-`   Microsoft Excel File Format`\
147-`*.xlsx  `\
148-`   Microsoft Office Open XML Excel File Format `
163+```text
164+*.ods
165+ OpenOffice.org Calc spreadsheet File Format
166+*.xls
167+ Microsoft Excel File Format
168+*.xlsx
169+ Microsoft Office Open XML Excel File Format
170+```
149171
150172## Operating system
151173
152174### Linux and Unix (excluding Darwin)
153175
154-`*.so `\
155-`   Shared object library`\
156-`*.sh`\
157-`   Shell script`\
158-`*.deb`\
159-`   Debian Package`\
160-`*.rpm`\
161-`   Red Hat Package Manager`
176+``` pascal
177+*.so
178+ Shared object library
179+*.sh
180+ Shell script
181+*.deb
182+ Debian Package
183+*.rpm
184+ Red Hat Package Manager
185+```
162186
163187### Mac (Darwin)
164188
165-`*.app`\
166-`   `[[Application Bundle|Application bundle]]` (a structured directory)`\
167-`*.dmg`\
168-`   Disk Image File `\
169-`*.dylib `\
170-`   `[[macOS Dynamic Libraries|Dynamic shared library]]\
171-`*.framework`\
172-`   Framework (set of interfaces or subframeworks)`\
173-`*.icns`\
174-`   Icon resource file containing one or more images used for an application icon `\
175-`*.plist`\
176-`   `[[macOS property list files|Property list file]]` (storage for serialised objects)`
189+```text
190+*.app
191+ Application bundle (a structured directory)
192+*.dmg
193+ Disk Image File
194+*.dylib
195+ Dynamic shared library
196+*.framework
197+ Framework (set of interfaces or subframeworks)
198+*.icns
199+ Icon resource file containing one or more images used for an application icon
200+*.plist
201+ Property list file (storage for serialised objects)
202+```
177203
178204### Windows
179205
180-`*.bat`\
181-`   Batch file. It's a text file that contains a sequence of commands for a computer operating system.`\
182-`*.dll `\
183-`  dynamic-link library`\
184-`*.exe`\
185-`   Directly executable program`
206+``` pascal
207+*.bat
208+ Batch file. It's a text file that contains a sequence of commands for a computer operating system.
209+*.dll
210+ dynamic-link library
211+*.exe
212+ Directly executable program
213+```
186214
187215## See also
188216
189217[[Alphabetical list of file extensions]]
190218
191219---
192220*From the Free Pascal wiki, page "File extensions", as it stood on 2023-12-08 after a change by N7800, 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).*
193221Category: File Handling
194222Category: Lazarus

Back to history