Changes between Version 12 and Version 13 of Coding_Conventions


Ignore:
Timestamp:
2012-03-01 21:52:53 (15 months ago)
Author:
Philip
Comment:

partial XML conventions

Legend:

Unmodified
Added
Removed
Modified
  • Coding_Conventions

    v12 v13  
    237237var c = (+a) + 1;  // numeric addition; c == 2 
    238238}}} 
     239 
     240== XML == 
     241 
     242 * All XML files should start with 
     243{{{ 
     244<?xml version="1.0" encoding="utf-8"?> 
     245}}} 
     246 and be UTF-8 encoded (preferably without a BOM but that doesn't really matter). 
     247 
     248 * Empty-element tags should be written without a trailing space: use `<foo/>` or `<foo bar="baz"/>`, not `<foo />` nor `<foo bar="baz" />`. 
     249 
     250 * Indent using whatever the similar existing XML files use. (Usually two spaces; sometimes four spaces, or tabs, etc.)