Skip to content

Commit

Permalink
editorconfig: update
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Sep 4, 2017
1 parent 85539f7 commit 20784d4
Showing 1 changed file with 39 additions and 18 deletions.
57 changes: 39 additions & 18 deletions editorconfig.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,46 @@
---
title: editorconfig
layout: 2017/sheet
prism_languages: [ini]
weight: -1
updated: 2017-09-04
---

### Example
### Short example
{: .-prime}

```conf
```ini
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
```

This example should be fine for most projects indented by 2 spaces. See: [animate.css editorconfig](https://github.com/daneden/animate.css/blob/master/.editorconfig)

### Properties

```ini
indent_style = {space|tab}
indent_size = {4|tab}
tab_width = 2
end_of_line = {cr|lf|crlf}
charset = {utf-8|utf-16be|utf-16le|latin1}
trim_trailing_whitespace = false
insert_final_newline = true
max_line_length = 80
```

### Full example

```ini
# top-most EditorConfig file
root = true

Expand Down Expand Up @@ -33,21 +69,6 @@ indent_style = space
indent_size = 2
```

### Properties

```conf
indent_style = {space|tab}
indent_size = {4|tab}
tab_width = 2
end_of_line = {cr|lf|crlf}
charset = {utf-8|utf-16be|utf-16le|latin1}
trim_trailing_whitespace = false
insert_final_newline = true
max_line_length = 80
```

### References

See: http://EditorConfig.org


- <http://EditorConfig.org>

0 comments on commit 20784d4

Please sign in to comment.