From 6bf4faa26cad0f2086e34877b21de6b316269eb4 Mon Sep 17 00:00:00 2001 From: Meenakshi Agrawal Date: Wed, 11 Feb 2015 01:58:33 +0530 Subject: [PATCH 1/2] Added Indentation.md file to Wiki --- Indentation.md | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Indentation.md diff --git a/Indentation.md b/Indentation.md new file mode 100644 index 0000000..67b0589 --- /dev/null +++ b/Indentation.md @@ -0,0 +1,57 @@ +## Indentation "2 Spaces" + +### Description + +In computer programming, indentation it is used to format program source code to improve readability. + +People use indentation to better convey the structure of their programs to human readers. + +The size of the indent is usually independent of the style. For Ruby and many programming languages, and some forms of HTML formatting, two spaces per indent level is generally used. + +### Examples + +#### Indented Code : + +``` +
+
+
col-12
+
+
+
col-11
+
+
+
col-10
+
col-2
+
+
+``` + +#### Bad Indented Code : + +``` +
+
+
col-12
+
+
+
+ col-11 + +
+
+
+
col-10 + +
+
col-2
+
+
+``` + +### References + +1. [Importance of Code Indentation] (http://mrbool.com/importance-of-code-indentation/29079) +2. [Tabs vs Spaces for Indentation] (http://nithinbekal.com/posts/indentation/) + + From f7045fad82fe26bd7269e8a00e66999c1e12ac4b Mon Sep 17 00:00:00 2001 From: Meenakshi Agrawal Date: Thu, 12 Feb 2015 23:13:32 +0530 Subject: [PATCH 2/2] Changes made --- Indentation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Indentation.md b/Indentation.md index 67b0589..95960ba 100644 --- a/Indentation.md +++ b/Indentation.md @@ -12,7 +12,7 @@ The size of the indent is usually independent of the style. For Ruby and many pr #### Indented Code : -``` +```html
col-12
@@ -29,7 +29,7 @@ The size of the indent is usually independent of the style. For Ruby and many pr #### Bad Indented Code : -``` +```html
col-12