PageRenderTime 32ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/wiki/MetaTags.wiki

http://jsdoc-toolkit.googlecode.com/
Unknown | 48 lines | 32 code | 16 blank | 0 comment | 0 complexity | d1678fa04a48b3ed8962a178c3536575 MD5 | raw file
  1. == Meta Tags ==
  2. A special syntax provides processing instructions to !JsDoc Toolkit. Any doc comment starting with the characters `/**#` is treated as a "meta tag."
  3. === Tag Sharing ===
  4. The tag sharing instruction allows you to apply a set of tags to a whole range of variables being documented in your code.
  5. ==== Syntax ====
  6. {{{
  7. /**#@+
  8. * anyTags
  9. */
  10. }}}
  11. * anyTags - Required: any group of tags you wish to share.
  12. * Note: The affect of this instruction is in force until the end of the file or the next `/**#@-*/` doc comment is encountered.
  13. ==== Example ====
  14. The tags in the tag sharing instruction will be applied to all of these functions.
  15. {{{
  16. /**#@+
  17. @private
  18. @memberOf Foo
  19. */
  20. function baz() {}
  21. function zop() {}
  22. function pez() {}
  23. /**#@-*/
  24. }}}
  25. In this example all three functions will be documented as private members of Foo. This syntax is more compact and convenient than creating three identical doc comments.
  26. === Making Code Invisible ===
  27. The nocode meta tag tells the !JsDoc Toolkit parser to completely ignore the source code while it is in effect. This is the same as turning the -n commandline option on temporarily.
  28. ==== Syntax ====
  29. {{{
  30. /**#nocode+*/
  31. }}}
  32. * Note: The affect of this instruction is in force until the end of the file or the next `/**#nocode-*/` doc comment is encountered.