Where can I find information on how to properly document a programming language? What I mean is that there seems to be a standard way to document code. php.net and api.jquery.com seem to document there code the a similar way. For example, the trim() description on php.net.
string trim ( string $str [, string $charlist ] )
And likewise on jquery.com
.animate( properties, [ duration ], [ easing ], [ callback ] )
Does anyone even know what this syntax is called?