updated README, added examples

This commit is contained in:
donaldpipowitch 2014-05-19 08:04:56 +02:00
parent a82ad5a2db
commit 3ac78078ce
9 changed files with 78 additions and 0 deletions

View File

@ -12,6 +12,8 @@ You can also type `ctrl-alt-b` as a shortcut or click `Packages > Beautify` in t
You can also choose to beautify on every file save. You can also choose to beautify on every file save.
You can change the current config by either using `.jsbeautifyrc` for all files or a non-standard variante with settings for every file type. You can see examples of both way inside [`examples/`](https://github.com/donaldpipowitch/atom-beautify/examples)
## License ## License
MIT © [Donald Pipowitch](https://github.com/donaldpipowitch) MIT © [Donald Pipowitch](https://github.com/donaldpipowitch)

View File

@ -0,0 +1,25 @@
{
"html": {
"brace_style": "collapse",
"indent_char": " ",
"indent_scripts": "normal",
"indent_size": 6,
"max_preserve_newlines": 1,
"preserve_newlines": true,
"unformatted": ["a", "sub", "sup", "b", "i", "u"],
"wrap_line_length": 0
},
"css": {
"indent_char": " ",
"indent_size": 4
},
"js": {
"indent_size": 2,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"jslint_happy": true
}
}

View File

@ -0,0 +1,3 @@
p {
color: red;
}

View File

@ -0,0 +1,15 @@
<!doctype html>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<h1>Hello</h1>
<p>
World!
</p>
</body>
</html>

View File

@ -0,0 +1,3 @@
function hell() {
console.log('world');
}

View File

@ -0,0 +1,9 @@
{
"indent_size": 2,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"jslint_happy": true
}

View File

@ -0,0 +1,3 @@
p {
color: red;
}

View File

@ -0,0 +1,15 @@
<!doctype html>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<h1>Hello</h1>
<p>
World!
</p>
</body>
</html>

View File

@ -0,0 +1,3 @@
function hell() {
console.log('world');
}