Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kseo/editor_config
A parser for EditorConfig fle written in Dart.
https://github.com/kseo/editor_config
Last synced: 26 days ago
JSON representation
A parser for EditorConfig fle written in Dart.
- Host: GitHub
- URL: https://github.com/kseo/editor_config
- Owner: kseo
- License: bsd-3-clause
- Created: 2015-12-14T16:39:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-15T00:22:22.000Z (almost 9 years ago)
- Last Synced: 2023-08-20T21:51:39.872Z (about 1 year ago)
- Language: Dart
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# editor_config
editor_config is a parser for [EditorConfig][EditorConfig] file.
EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems.
[EditorConfig]: http://editorconfig.org/
## Supported properties
- root
- indent_style
- indent_size
- charset *(supported values: `latin1`, `utf-8`)*
- end_of_line *(supported values: `lf`, `crlf`)*## Example file
```ini
root = true[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
```## Usage
A simple usage example:
```dart
final config = new EditorConfig.fromString(configString);
Properties p = config.lookup('foo.js');
print(p.indent_size); // 4
```## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/kseo/editor_config/issues