markdown

md files called markdown.
—————————————————-

== Example ==
{|class=”wikitable”
! width=”33%” | Text using Markdown syntax
! width=”33%” | Corresponding HTML produced by a Markdown processor
! width=”33%” | Text viewed in a browser
|-valign=”top”
|# Heading

## Sub-heading

### Another deeper heading

Paragraphs are separated
by a blank line.

Two spaces at the end of a line leave a
line break.

Text attributes _italic_, *italic*, __bold__, **bold**, `monospace`.

Horizontal rule:

Bullet list:

* apples
* oranges
* pears

Numbered list:

1. apples
2. oranges
3. pears

A [link](http://example.com).

|

Heading

Sub-heading

Another deeper heading

Paragraphs are separated
by a blank line.

Two spaces at the end of a line leave a
line break.

Text attributes italic, italic, bold, bold, monospace.

Horizontal rule:


Bullet list:

  • apples
  • oranges
  • pears

Numbered list:

  1. apples
  2. oranges
  3. pears

A link.

|
{{fake heading|sub=2|Heading}}

{{fake heading|sub=3|Sub-heading}}

{{fake heading|sub=4|Another deeper heading}}

Paragraphs are separated
by a blank line.

Two spaces at the end of a line leave a
line break.

Text attributes ”italic”, ”italic”, ”’bold”’, ”’bold”’, monospace.

Horizontal rule:


Bullet list:

* apples
* oranges
* pears

Numbered list:

# apples
# oranges
# pears

A [http://example.com link].
|}

color rotator

to rotate the colors in a table without js.


echo "<_table>";
$bg1 = "#ffffff"; // background White
$bg2 = "#f2f0f0"; // background L-Gray

while($row = mysql_fetch_array($result))
{
echo "<_tr> bgcolor='$bg1'>

" . $row['id'];
echo "<_ /td><_td>" . $row['Number'];
echo "<_ /td>";
$bg3 = $bg1; // \
$bg1 = $bg2; // Color rotator
$bg2 = $bg3; // /
}
echo "<_ /tr> <_ /table>" ;

used on /4080/4080-lt-002.php 5/29/2014

Rules for java script.

Rules for JavaScript code
using Aside format

JavaScript Standard Style

2 spaces – for indentation
Single quotes for strings – except to avoid escaping
No unused variables – this one catches tons of bugs!
No semicolons
Never start a line with (, [, or `
Space after keywords if (condition) { … }
Space after function name function name (arg) { … }
Always use === instead of == – but obj == null is allowed to check null || undefined.
Always handle the Node.js err function parameter
Always prefix browser globals with window – except document and navigator are okay
Prevents accidental use of poorly-named browser globals like open, length,
event, and name.

rules for java script