# EditorConfig helps maintain consistent coding styles
# https://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# =========================
# Fichiers PHP
# =========================
[*.php]
indent_style = tab
indent_size = 4

# =========================
# Fichiers SPIP (squelettes)
# =========================
[*.html]
indent_style = tab
indent_size = 4

# =========================
# Fichiers JS
# =========================
[*.js]
indent_style = tab
indent_size = 4

# =========================
# Fichiers CSS
# =========================
[*.css]
indent_style = tab
indent_size = 4

# =========================
# Fichiers YAML / XML
# =========================
[*.{yml,yaml,xml}]
indent_style = space
indent_size = 2

# =========================
# Markdown
# =========================
[*.md]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false

# =========================
# Makefile / scripts
# =========================
[Makefile]
indent_style = tab

[*.sh]
indent_style = space
indent_size = 2