Changes between Version 34 and Version 35 of DeveloperGuidelines/CodeConventions
- Timestamp:
- 11/16/13 22:58:04 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/CodeConventions
v34 v35 24 24 === Quotes === 25 25 26 - for string constants in Python use double quotes " "- UNLESS the string contains "27 - for string constants in !JavaScript use single quotes ' '- UNLESS the string contains a '26 - for string constants in Python use double-quotes {{{" "}}} - UNLESS the string contains " 27 - for string constants in !JavaScript use single-quotes {{{' '}}} - UNLESS the string contains a ' 28 28 29 - for Inline-!JavaScript or JSON inside Python code use ' ' ' ' ' '30 - in all other cases of triple-quoted strings (such as docstrings or Inline-XML) use " " " " " "29 - for Inline-!JavaScript or JSON inside Python code use {{{''' '''}}} with single-quotes 30 - in all other cases of triple-quoted strings (such as docstrings or Inline-XML) use {{{""" """}}} with double-quotes 31 31 32 - for XML/HTML attributes use double quotes " " (inner quotes must be escaped anyway) 33 32 - for XML/HTML attributes use double-quotes {{{" "}}} (inner quotes must be escaped anyway) 34 33 === Naming conventions === 35 34