##My Formatting
###File Start:
#!/bin/something # If relevant
##### My (demuredemeanor) attempt to codify my formatting
# Uses shiftwidth=4 for tabs; foldmarker={{{,}}} for folds;
# https://gitorious.org/demure/dotfiles/
# legacy repo http://github.com/demure/dotfiles
###Code Block:
### Title Block ### {{{
Contents
### End Title ### }}}
###Comments:
####Own line
## Some comment...
# ...and its second line
some code
####Same Line as Code
some code # Some comment
some more code # Another comment
####Toggling Code
#echo "some text" # Toggled off
other code # Still active
```
* Long sections can have comment symbol at beginning of line
# if
# blah
# else
# blah blah
# fi
* Temporary comments may use three, or more, comment symbols
* May also be use to distinguish between example conf comments
###some code # disabled for troubleshooting
other code
#another line # disabled
###Indentation:
####Overall Indents
* Child Blocks will be indented one further than parent
* Neighboring Blocks will be on the same indent level
### Parent Block ### {{{
### Child Block ### {{{
content
### End Child ### }}}
### Other Nested ### {{{
other content
### End Nested ### }}}
### End Parent ### }}}
####'if' Test Indents
* Code will be indented one further than 'if'
* Half indent 'else's... because I like it.
if
first
else
second
fi
###Line Spacing:
####Spacing Neighboring Blocks
* Neighboring Blocks will be separated by a blank line
* Nested blocks will not be
### Parent Block ### {{{
### Child Block ### {{{
content
### End Child ### }}}
### Other Nested ### {{{
other content
### End Nested ### }}}
### End Parent ### }}}
####Spacing Comments
* Comment lines used to identify a Section will have blank line prior
* Comment lines used for details/description need not
if other_test
echo "for demonstrating below"
fi
## Test for something
if something
blah
fi
* 'Short' descriptions need not have blank line
some other code
## desc of following code
echo "the really long code is located here"
```
######Last edit 23NOV2014