2008年10月8日星期三

How to make sure eclipse code formater does not wrap multi line comment .

Add HTML marks to avoid code formater wrap long comments to ugly
one.
For example:<div>&<br />
/**
* <div> Date format reference:<br />
* Letter Date or Time Component Presentation Examples <br />
* G Era designator Text AD <br />
* y Year Year 1996; 96 <br />
* M Month in year Month July; Jul; 07 <br />
* w Week in year Number 27 <br />
* W Week in month Number 2 <br />
* D Day in year Number 189 <br />
* d Day in month Number 10 <br />
* F Day of week in month Number 2 <br />
* E Day in week Text Tuesday; Tue <br />
* a Am/pm marker Text PM <br />
* H Hour in day (0-23) Number 0 <br />
* k Hour in day (1-24) Number 24 <br />
* K Hour in am/pm (0-11) Number 0 <br />
* h Hour in am/pm (1-12) Number 12 <br />
* m Minute in hour Number 30 <br />
* s Second in minute Number 55 <br />
* S Millisecond Number 978 <br />
* z Time zone General time zone Pacific Standard Time; PST; GMT-08:00
* <br />
* Z Time zone RFC 822 time zone -0800 </div>
*/

没有评论: