Question

How do you add sample xml to asdoc function/class comments in Flex? They can obviously be added, but they wont show in the hover asdoc comments in Flash Builder 4.

/**
* Generates a ChangeAccount in xml format when they are being saved 
* 
* <p>Will be in the following form  
*  Use http://xmlindent.com/ to view pretty xml format)
*  
*  <ChangeAccount History="w" Alias="transaction".............
* </p>
*
* @return XML
*/
public function get xml():XML
{           
}
Was it helpful?

Solution

Escape the '<' and '>' with & lt; and & gt; ( Note: remove the spaces )

& lt;ChangeAccount History="w" Alias="transaction"............. /& gt;

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top