Coding style

Style rules for indentation, blank lines, braces, casting, assignment spacing, and relying on built-in word wrap for width.

  1. Indentation.
  2. Blank line.

Braces

  1. A code block visible in a page should stay visible as a block.
  2. A lengthy block should have separate starting parentheses.
  3. The ending brace should be dedicated.

Casting

Space after casting.

Equals (assignment)

Separated by space.

Width

Rely on in-built word wrap, as this will be dynamic based on client window size.

Updated: 2026 Aug 19