/** Example of messy use of block tags with and without leading space and star. Note the example code block: you can use either {@code code} or {@code pre} to write a code example. When a code text spans multiple lines, the text is automatically wrapped inside {@code
} tags.
var r = 10.0;
var d = Math.PI * r;
recalculateBounds(d);
// Example with indented code.
target.onReady = function ()
{
loadMovie("http://www.mysite.com/mymovie.swf");
}
} tags - renders identical:Some more code inside wrong tags: {@codevar r = 10.0; var d = Math.PI * r; recalculateBounds(d); // Example with indented code. target.onReady = function () { loadMovie("http://www.mysite.com/mymovie.swf"); }
Code with stars: ** var r = 10.0; * var d = Math.PI * r; * recalculateBounds(d); * * // Example with indented code. * target.onReady = function () * { * loadMovie("http://www.mysite.com/mymovie.swf"); * } *
Same code but within {@code} tags:}var r = 10.0; var d = Math.PI * r; recalculateBounds(d); // Example with indented code. target.onReady = function () { loadMovie("http://www.mysite.com/mymovie.swf"); }
Some code inside wrong tags: {@codeThis text is inside wrong tags
}This text is inside wrong tags @use With the following xml file:8-8-2004 This is text with code inside a div:*/ class InputVariations /* some comment here does not break parsing */ // and some comment here is also allowed { /**----------------------------------------------------------------------------- * @use *var r = 10.0; var d = Math.PI * r; recalculateBounds(d); // Example with indented code. target.onReady = function () { loadMovie("http://www.mysite.com/mymovie.swf"); }* var daysPassed:Number = DateUtils.getDaysSinceNow( myOtherDateObj ); ** comment line 1 * comment line 2 * comment line 3
These lines will only be written on separate lines if the option "Preserve linebreaks" is selected. Otherwise use {@code
} to create a new line. ------------------------------------------------------------------------------*/ static public function getDaysSinceNow (inDate:Date) : Number { // } /** @usevar daysPassed:Number = DateUtils.getDaysSinceNow( myOtherDateObj );comment line 1
comment line 2
comment line 3
*/ static public function sameMethodWithoutStars (inDate:Date) : Number { // } /** @usevar daysPassed:Number = DateUtils.getDaysSinceNow( myOtherDateObj );
comment line 1
comment line 2
comment line 3
*/ static public function sameMethodWithoutStarsWithCodeOnOneLine (inDate:Date) : Number { // } }