File extensions: what changed
Revision 2 to 3. 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 | 7 | <thead> | |
| 8 | 8 | ||
| 9 | 9 | </thead> | |
| 10 | 10 | <tbody> | |
| 11 | 11 | ||
| 12 | 12 | (2) Compiled code from other compilers (e.g. gcc) linked into a static library</td> | |
| 13 | 13 | ||
| 14 | 14 | </tbody> | |
| 15 | 15 | ||
| 16 | 16 | ### Subversion or Git | |
| 17 | 17 | ||
| 18 | 18 | These files would normally be stored in a repository as an adequate description of a project: | |
| 19 | 19 | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 23 | - | ||
| 24 | - | ||
| 20 | + | ```text | |
| 21 | + | *.lpi | |
| 22 | + | *.lpr | |
| 23 | + | *.lfm | |
| 24 | + | *.pas | |
| 25 | + | *.pp | |
| 26 | + | ``` | |
| 25 | 27 | ||
| 26 | 28 | 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: | |
| 27 | 29 | ||
| 28 | - | ||
| 29 | - | ||
| 30 | - | ||
| 31 | - | ||
| 32 | - | ||
| 30 | + | ```text | |
| 31 | + | *.inc | |
| 32 | + | *.res | |
| 33 | + | *.lrs | |
| 34 | + | *.rc | |
| 35 | + | *.ico | |
| 36 | + | ``` | |
| 33 | 37 | ||
| 34 | 38 | These files are regenerated by the IDE or by a build so do not need to be stored: | |
| 35 | 39 | ||
| 36 | - | ||
| 37 | - | ||
| 38 | - | ||
| 39 | - | ||
| 40 | - | ||
| 41 | - | ||
| 42 | - | ||
| 40 | + | ```text | |
| 41 | + | *.ppu | |
| 42 | + | *.o | |
| 43 | + | *.a | |
| 44 | + | *.lps | |
| 45 | + | *.or | |
| 46 | + | *.rst | |
| 47 | + | *.compiled | |
| 48 | + | ``` | |
| 43 | 49 | ||
| 44 | 50 | Note that *.lrj files are generated for every form while tracking i18n, loss of these files can cause missing translations. | |
| 45 | 51 | ||
| 46 | 52 | There is an example .gitignore file at [3](https://github.com/github/gitignore/blob/master/Global/Lazarus.gitignore). | |
| 47 | 53 | ||
| 48 | 54 | ## [[Delphi]] | |
| 49 | 55 | ||
| 50 | 56 | ### Project files | |
| 51 | 57 | ||
| 52 | - | ||
| 53 | - | ||
| 54 | - | ||
| 55 | - | ||
| 56 | - | ||
| 57 | - | ||
| 58 | + | ```text | |
| 59 | + | *.dfm | |
| 60 | + | Delphi form module | |
| 61 | + | *.dof | |
| 62 | + | Delphi project options file | |
| 63 | + | *.dsk | |
| 64 | + | Desktop configuration | |
| 65 | + | ``` | |
| 58 | 66 | ||
| 59 | 67 | ### Converting Delphi projects | |
| 60 | 68 | ||
| 61 | 69 | Lazarus can convert at least some Delphi project files into its own format. | |
| 62 | 70 | ||
| 63 | 71 | ## Application | |
| 64 | 72 | ||
| 65 | 73 | ### General | |
| 66 | 74 | ||
| 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 | - | ||
| 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 | + | ||
| 97 | + | Portable Document Format | |
| 98 | + | *.ps | |
| 99 | + | PostScript | |
| 100 | + | *.rtf | |
| 101 | + | Rich Text Format text file | |
| 102 | + | ``` | |
| 93 | 103 | ||
| 94 | 104 | ### Image | |
| 95 | 105 | ||
| 96 | - | ||
| 97 | - | ||
| 98 | - | ||
| 99 | - | ||
| 100 | - | ||
| 101 | - | ||
| 102 | - | ||
| 103 | - | ||
| 104 | - | ||
| 105 | - | ||
| 106 | - | ||
| 107 | - | ||
| 108 | - | ||
| 109 | - | ||
| 110 | - | ||
| 111 | - | ||
| 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 | + | ``` | |
| 112 | 124 | ||
| 113 | 125 | ### XML | |
| 114 | 126 | ||
| 115 | - | ||
| 116 | - | ||
| 117 | - | ||
| 118 | - | ||
| 127 | + | ```text | |
| 128 | + | *.xml | |
| 129 | + | *.dtd | |
| 130 | + | *.xsd | |
| 131 | + | *.xsl | |
| 132 | + | ``` | |
| 119 | 133 | ||
| 120 | 134 | ### Web | |
| 121 | 135 | ||
| 122 | - | ||
| 123 | - | ||
| 124 | - | ||
| 125 | - | ||
| 136 | + | ```text | |
| 137 | + | *.html | |
| 138 | + | Hypertext Markup Language | |
| 139 | + | *.css | |
| 140 | + | Cascading style sheet | |
| 141 | + | ``` | |
| 126 | 142 | ||
| 127 | 143 | ### Archive | |
| 128 | 144 | ||
| 129 | - | ||
| 130 | - | ||
| 131 | - | ||
| 132 | - | ||
| 145 | + | ```text | |
| 146 | + | *.tar | |
| 147 | + | tape archive | |
| 148 | + | *.zip | |
| 149 | + | a single file containing one or more compressed files | |
| 150 | + | ``` | |
| 133 | 151 | ||
| 134 | 152 | ### Database | |
| 135 | 153 | ||
| 136 | - | ||
| 137 | - | ||
| 138 | - | ||
| 139 | - | ||
| 154 | + | ```text | |
| 155 | + | *.dbf | |
| 156 | + | Database file | |
| 157 | + | *.mdx | |
| 158 | + | Multiple index file | |
| 159 | + | ``` | |
| 140 | 160 | ||
| 141 | 161 | ### [[FPSpreadsheet|Spreadsheet]] | |
| 142 | 162 | ||
| 143 | - | ||
| 144 | - | ||
| 145 | - | ||
| 146 | - | ||
| 147 | - | ||
| 148 | - | ||
| 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 | + | ``` | |
| 149 | 171 | ||
| 150 | 172 | ## Operating system | |
| 151 | 173 | ||
| 152 | 174 | ### Linux and Unix (excluding Darwin) | |
| 153 | 175 | ||
| 154 | - | ||
| 155 | - | ||
| 156 | - | ||
| 157 | - | ||
| 158 | - | ||
| 159 | - | ||
| 160 | - | ||
| 161 | - | ||
| 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 | + | ``` | |
| 162 | 186 | ||
| 163 | 187 | ### Mac (Darwin) | |
| 164 | 188 | ||
| 165 | - | ||
| 166 | - | ||
| 167 | - | ||
| 168 | - | ||
| 169 | - | ||
| 170 | - | ||
| 171 | - | ||
| 172 | - | ||
| 173 | - | ||
| 174 | - | ||
| 175 | - | ||
| 176 | - | ||
| 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 | + | ``` | |
| 177 | 203 | ||
| 178 | 204 | ### Windows | |
| 179 | 205 | ||
| 180 | - | ||
| 181 | - | ||
| 182 | - | ||
| 183 | - | ||
| 184 | - | ||
| 185 | - | ||
| 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 | + | ``` | |
| 186 | 214 | ||
| 187 | 215 | ## See also | |
| 188 | 216 | ||
| 189 | 217 | [[Alphabetical list of file extensions]] | |
| 190 | 218 | ||
| 191 | 219 | --- | |
| 192 | 220 | *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).* | |
| 193 | 221 | Category: File Handling | |
| 194 | 222 | Category: Lazarus |
