Changes between Version 34 and Version 35 of DeveloperGuidelines/CodeConventions


Ignore:
Timestamp:
11/16/13 22:58:04 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/CodeConventions

    v34 v35  
    2424=== Quotes ===
    2525
    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 '
    2828
    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
    3131
    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)
    3433=== Naming conventions ===
    3534