From 05f54ab16b167656fb58b1f6503296dd44518132 Mon Sep 17 00:00:00 2001 From: Trey Hunner Date: Sun, 26 Feb 2012 11:08:16 -0800 Subject: [PATCH 1/2] Add EditorConfig file for Ruby files --- .editorconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..d359ca6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +; This file is for unifying the coding style for different editors and IDEs. +; More information at http://EditorConfig.org + +root = true + +; Use 2 spaces for indentation in all Ruby files + +[*.rb] +indent_style = space +indent_size = 2 + +[Rakefile] +indent_style = space +indent_size = 2 + +[Gemfile*] +indent_style = space +indent_size = 2 + +[config.ru] +indent_style = space +indent_size = 2 From 0996e56f761e76f64f505723cc5a8c3688683cae Mon Sep 17 00:00:00 2001 From: Trey Hunner Date: Sun, 26 Feb 2012 11:08:38 -0800 Subject: [PATCH 2/2] Add EditorConfig file for classic theme --- .themes/classic/.editorconfig | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .themes/classic/.editorconfig diff --git a/.themes/classic/.editorconfig b/.themes/classic/.editorconfig new file mode 100644 index 0000000..940fea3 --- /dev/null +++ b/.themes/classic/.editorconfig @@ -0,0 +1,44 @@ +; This file is for unifying the coding style for different editors and IDEs. +; More information at http://EditorConfig.org + + +; Use 2 spaces for indentation in SCSS, JavaScript, HTML, and XML + +[*.scss] +indent_style = space +indent_size = 2 + +[*.js] +indent_style = space +indent_size = 2 + +[*.html] +indent_style = space +indent_size = 2 + +[*.xml] +indent_style = space +indent_size = 2 + + +; Use 4 spaces for indentation in Markdown files + +[*.md] +indent_style = space +indent_size = 4 + +[*.markdown] +indent_style = space +indent_size = 4 + + +; Override default indentation for some library files + +[jwplayer/glow/glow.xml] +indent_style = tab + +[libs/jXHR.js] +indent_style = tab + +[libs/swfobject-dynamic.js] +indent_style = tab