File extensions: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | Here 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). | |
| 2 | 2 | ||
| 3 | 3 | ## Lazarus | |
| 4 | 4 | ||
| 5 | 5 | ### Project files | |
| 6 | 6 | ||
| 7 | - | ||
| 8 | 7 | <thead> | |
| 9 | - | ||
| 10 | - | ||
| 11 | - | ||
| 12 | - | ||
| 13 | - | ||
| 14 | - | ||
| 8 | + | ||
| 15 | 9 | </thead> | |
| 16 | 10 | <tbody> | |
| 17 | - | ||
| 18 | - | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 23 | - | ||
| 24 | - | ||
| 25 | - | ||
| 26 | - | ||
| 27 | - | ||
| 28 | - | ||
| 29 | - | ||
| 30 | - | ||
| 31 | - | ||
| 32 | - | ||
| 33 | - | ||
| 34 | - | ||
| 35 | - | ||
| 36 | - | ||
| 37 | - | ||
| 38 | - | ||
| 39 | - | ||
| 40 | - | ||
| 41 | - | ||
| 42 | - | ||
| 43 | - | ||
| 44 | - | ||
| 45 | - | ||
| 46 | - | ||
| 47 | - | ||
| 48 | - | ||
| 49 | - | ||
| 50 | - | ||
| 51 | - | ||
| 52 | - | ||
| 53 | - | ||
| 54 | - | ||
| 55 | - | ||
| 56 | - | ||
| 57 | - | ||
| 58 | - | ||
| 59 | - | ||
| 60 | - | ||
| 61 | - | ||
| 62 | - | ||
| 63 | - | ||
| 64 | - | ||
| 65 | - | ||
| 66 | - | ||
| 67 | - | ||
| 68 | - | ||
| 69 | - | ||
| 70 | - | ||
| 71 | - | ||
| 72 | - | ||
| 73 | - | ||
| 74 | - | ||
| 75 | - | ||
| 76 | - | ||
| 77 | - | ||
| 78 | - | ||
| 79 | - | ||
| 80 | - | ||
| 81 | - | ||
| 82 | - | ||
| 83 | - | ||
| 84 | - | ||
| 85 | - | ||
| 86 | - | ||
| 87 | - | ||
| 88 | - | ||
| 89 | - | ||
| 90 | - | ||
| 91 | - | ||
| 92 | - | ||
| 93 | - | ||
| 94 | - | ||
| 95 | - | ||
| 96 | - | ||
| 97 | - | ||
| 11 | + | ||
| 98 | 12 | (2) Compiled code from other compilers (e.g. gcc) linked into a static library</td> | |
| 99 | - | ||
| 100 | - | ||
| 101 | - | ||
| 102 | - | ||
| 103 | - | ||
| 104 | - | ||
| 105 | - | ||
| 106 | - | ||
| 107 | - | ||
| 108 | - | ||
| 109 | - | ||
| 110 | - | ||
| 111 | - | ||
| 112 | - | ||
| 113 | - | ||
| 114 | - | ||
| 115 | - | ||
| 116 | - | ||
| 117 | - | ||
| 118 | - | ||
| 119 | - | ||
| 120 | - | ||
| 121 | - | ||
| 122 | - | ||
| 123 | - | ||
| 124 | - | ||
| 125 | - | ||
| 126 | - | ||
| 127 | - | ||
| 128 | - | ||
| 129 | - | ||
| 130 | - | ||
| 131 | - | ||
| 132 | - | ||
| 133 | - | ||
| 134 | - | ||
| 135 | - | ||
| 136 | - | ||
| 137 | - | ||
| 138 | - | ||
| 139 | - | ||
| 140 | - | ||
| 141 | - | ||
| 142 | - | ||
| 143 | - | ||
| 144 | - | ||
| 145 | - | ||
| 146 | - | ||
| 147 | - | ||
| 148 | - | ||
| 149 | - | ||
| 13 | + | ||
| 150 | 14 | </tbody> | |
| 151 | - | ||
| 152 | 15 | ||
| 153 | 16 | ### Subversion or Git | |
| 154 | 17 | ||
| 155 | 18 | These files would normally be stored in a repository as an adequate description of a project: | |
| 156 | 19 | ||
| 157 | 20 | `*.lpi`\ | |
| 158 | 21 | `*.lpr`\ | |
| 159 | 22 | `*.lfm`\ | |
| 160 | 23 | `*.pas`\ | |
| 161 | 24 | `*.pp` | |
| 162 | 25 | ||
| 163 | 26 | These 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: | |
| 164 | 27 | ||
| 165 | 28 | `*.inc`\ | |
| 166 | 29 | `*.res`\ | |
| 167 | 30 | `*.lrs`\ | |
| 168 | 31 | `*.rc`\ | |
| 169 | 32 | `*.ico` | |
| 170 | 33 | ||
| 171 | 34 | These files are regenerated by the IDE or by a build so do not need to be stored: | |
| 172 | 35 | ||
| 173 | 36 | `*.ppu`\ | |
| 174 | 37 | `*.o`\ | |
| 175 | 38 | `*.a`\ | |
| 176 | 39 | `*.lps`\ | |
| 177 | 40 | `*.or`\ | |
| 178 | 41 | `*.rst`\ | |
| 179 | 42 | `*.compiled` | |
| 180 | 43 | ||
| 181 | 44 | Note that *.lrj files are generated for every form while tracking i18n, loss of these files can cause missing translations. | |
| 182 | 45 | ||
| 183 | 46 | There is an example .gitignore file at [3](https://github.com/github/gitignore/blob/master/Global/Lazarus.gitignore). | |
| 184 | 47 | ||
| 185 | 48 | ## [[Delphi]] | |
| 186 | 49 | ||
| 187 | 50 | ### Project files | |
| 188 | 51 | ||
| 189 | 52 | `*.dfm`\ | |
| 190 | 53 | ` Delphi form module`\ | |
| 191 | 54 | `*.dof`\ | |
| 192 | 55 | ` Delphi project options file`\ | |
| 193 | 56 | `*.dsk`\ | |
| 194 | 57 | ` Desktop configuration` | |
| 195 | 58 | ||
| 196 | 59 | ### Converting Delphi projects | |
| 197 | 60 | ||
| 198 | 61 | Lazarus can convert at least some Delphi project files into its own format. | |
| 199 | 62 | ||
| 200 | 63 | ## Application | |
| 201 | 64 | ||
| 202 | 65 | ### General | |
| 203 | 66 | ||
| 204 | 67 | `*.txt`\ | |
| 205 | 68 | ` Text file`\ | |
| 206 | 69 | `*.po`\ | |
| 207 | 70 | ` Gettext Portable Object`\ | |
| 208 | 71 | `*.bak`\ | |
| 209 | 72 | ` Backup`\ | |
| 210 | 73 | `*.cfg`\ | |
| 211 | 74 | ` Config file`\ | |
| 212 | 75 | `*.chm`\ | |
| 213 | 76 | ` Compiled Help File - contains html. See also package `[[chm]]\ | |
| 214 | 77 | `*.csv`\ | |
| 215 | 78 | ` Comma Separated Values text file format `\ | |
| 216 | 79 | `*.exe`\ | |
| 217 | 80 | ` Directly executable program`\ | |
| 218 | 81 | `*.hlp`\ | |
| 219 | 82 | ` Help file`\ | |
| 220 | 83 | `*.ini`\ | |
| 221 | 84 | ` Initialization file`\ | |
| 222 | 85 | `*.odt`\ | |
| 223 | 86 | ` OpenDocument text document`\ | |
| 224 | 87 | `*.pdf`\ | |
| 225 | 88 | ` Portable Document Format`\ | |
| 226 | 89 | `*.ps`\ | |
| 227 | 90 | ` PostScript `\ | |
| 228 | 91 | `*.rtf`\ | |
| 229 | 92 | ` Rich Text Format text file` | |
| 230 | 93 | ||
| 231 | 94 | ### Image | |
| 232 | 95 | ||
| 233 | 96 | `*.png`\ | |
| 234 | 97 | ` Portable network graphic`\ | |
| 235 | 98 | `*.bmp`\ | |
| 236 | 99 | ` bitmap `\ | |
| 237 | 100 | `*.ico`\ | |
| 238 | 101 | ` icon `\ | |
| 239 | 102 | `*.xpm`\ | |
| 240 | 103 | ` pixmap `\ | |
| 241 | 104 | `*.ppm`\ | |
| 242 | 105 | ` portable pixmap `\ | |
| 243 | 106 | `*.pgm`\ | |
| 244 | 107 | ` portable graymap `\ | |
| 245 | 108 | `*.pbm`\ | |
| 246 | 109 | ` portable bitmap `\ | |
| 247 | 110 | `*.jpg`\ | |
| 248 | 111 | ` compressed image format standardised by the Joint Photographic Experts Group (JPEG)` | |
| 249 | 112 | ||
| 250 | 113 | ### XML | |
| 251 | 114 | ||
| 252 | 115 | `*.xml`\ | |
| 253 | 116 | `*.dtd`\ | |
| 254 | 117 | `*.xsd`\ | |
| 255 | 118 | `*.xsl` | |
| 256 | 119 | ||
| 257 | 120 | ### Web | |
| 258 | 121 | ||
| 259 | 122 | `*.html`\ | |
| 260 | 123 | ` Hypertext Markup Language`\ | |
| 261 | 124 | `*.css`\ | |
| 262 | 125 | ` Cascading style sheet` | |
| 263 | 126 | ||
| 264 | 127 | ### Archive | |
| 265 | 128 | ||
| 266 | 129 | `*.tar`\ | |
| 267 | 130 | ` tape archive`\ | |
| 268 | 131 | `*.zip`\ | |
| 269 | 132 | ` a single file containing one or more compressed files` | |
| 270 | 133 | ||
| 271 | 134 | ### Database | |
| 272 | 135 | ||
| 273 | 136 | `*.dbf`\ | |
| 274 | 137 | ` Database file`\ | |
| 275 | 138 | `*.mdx`\ | |
| 276 | 139 | ` Multiple index file` | |
| 277 | 140 | ||
| 278 | 141 | ### [[FPSpreadsheet|Spreadsheet]] | |
| 279 | 142 | ||
| 280 | 143 | `*.ods`\ | |
| 281 | 144 | ` OpenOffice.org Calc spreadsheet File Format`\ | |
| 282 | 145 | `*.xls `\ | |
| 283 | 146 | ` Microsoft Excel File Format`\ | |
| 284 | 147 | `*.xlsx `\ | |
| 285 | 148 | ` Microsoft Office Open XML Excel File Format ` | |
| 286 | 149 | ||
| 287 | 150 | ## Operating system | |
| 288 | 151 | ||
| 289 | 152 | ### Linux and Unix (excluding Darwin) | |
| 290 | 153 | ||
| 291 | 154 | `*.so `\ | |
| 292 | 155 | ` Shared object library`\ | |
| 293 | 156 | `*.sh`\ | |
| 294 | 157 | ` Shell script`\ | |
| 295 | 158 | `*.deb`\ | |
| 296 | 159 | ` Debian Package`\ | |
| 297 | 160 | `*.rpm`\ | |
| 298 | 161 | ` Red Hat Package Manager` | |
| 299 | 162 | ||
| 300 | 163 | ### Mac (Darwin) | |
| 301 | 164 | ||
| 302 | 165 | `*.app`\ | |
| 303 | 166 | ` `[[Application Bundle|Application bundle]]` (a structured directory)`\ | |
| 304 | 167 | `*.dmg`\ | |
| 305 | 168 | ` Disk Image File `\ | |
| 306 | 169 | `*.dylib `\ | |
| 307 | 170 | ` `[[macOS Dynamic Libraries|Dynamic shared library]]\ | |
| 308 | 171 | `*.framework`\ | |
| 309 | 172 | ` Framework (set of interfaces or subframeworks)`\ | |
| 310 | 173 | `*.icns`\ | |
| 311 | 174 | ` Icon resource file containing one or more images used for an application icon `\ | |
| 312 | 175 | `*.plist`\ | |
| 313 | 176 | ` `[[macOS property list files|Property list file]]` (storage for serialised objects)` | |
| 314 | 177 | ||
| 315 | 178 | ### Windows | |
| 316 | 179 | ||
| 317 | 180 | `*.bat`\ | |
| 318 | 181 | ` Batch file. It's a text file that contains a sequence of commands for a computer operating system.`\ | |
| 319 | 182 | `*.dll `\ | |
| 320 | 183 | ` dynamic-link library`\ | |
| 321 | 184 | `*.exe`\ | |
| 322 | 185 | ` Directly executable program` | |
| 323 | 186 | ||
| 324 | 187 | ## See also | |
| 325 | 188 | ||
| 326 | 189 | [[Alphabetical list of file extensions]] | |
| 327 | 190 | ||
| 328 | 191 | --- | |
| 329 | 192 | *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).* | |
| 330 | 193 | Category: File Handling | |
| 331 | 194 | Category: Lazarus |
