Revision 3668:eae37064e2c2,
766 bytes
checked in by franck <carnet.franck.paul@…>, 8 years ago
(diff) |
.editorconfig: PSR-2 for PHP, add specific extension settings
|
Line | |
---|
1 | # EditorConfig is awesome: http://EditorConfig.org |
---|
2 | |
---|
3 | # Recommended for Dotclear developments and contribution |
---|
4 | # See https://dotclear.org/documentation/2.0/resources/coding-standards |
---|
5 | |
---|
6 | # Revisions |
---|
7 | # |
---|
8 | # 1. Franck: creation (2017-12-04) |
---|
9 | # 2. Franck: PSR-2 for PHP, add specific extension settings (2018-01-19) |
---|
10 | |
---|
11 | # top-most EditorConfig file |
---|
12 | root = true |
---|
13 | |
---|
14 | # Unix-style newlines with a newline ending every file |
---|
15 | [*] |
---|
16 | end_of_line = lf |
---|
17 | insert_final_newline = true |
---|
18 | charset = utf-8 |
---|
19 | indent_style = tab |
---|
20 | indent_size = 4 |
---|
21 | trim_trailing_whitespace = true |
---|
22 | |
---|
23 | # PHP |
---|
24 | [*.php,*.tpl] |
---|
25 | indent_style = space |
---|
26 | indent_size = 4 |
---|
27 | |
---|
28 | # Javascript/JSon |
---|
29 | [*.js,*.json] |
---|
30 | indent_style = space |
---|
31 | indent_size = 2 |
---|
32 | |
---|
33 | # Markdown |
---|
34 | [*.md] |
---|
35 | trim_trailing_whitespace = false |
---|
36 | |
---|
37 | # XML |
---|
38 | [*.xml] |
---|
39 | indent_style = space |
---|
40 | indent_size = 2 |
---|
Note: See
TracBrowser
for help on using the repository browser.