mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
Mention documentation comments in GDScript basics
This commit is contained in:
@@ -572,6 +572,21 @@ considered a comment.
|
|||||||
The list of highlighted keywords and their colors can be changed in the **Text
|
The list of highlighted keywords and their colors can be changed in the **Text
|
||||||
Editor > Theme > Comment Markers** section of the Editor Settings.
|
Editor > Theme > Comment Markers** section of the Editor Settings.
|
||||||
|
|
||||||
|
Use two hash symbols (``##``) instead of one (``#``) to add a *documentation
|
||||||
|
comment*, which will appear in the script documentation and in the inspector
|
||||||
|
description of an exported variable. Documentation comments must be placed
|
||||||
|
directly *above* a documentable item (such as a member variable), or at the top
|
||||||
|
of a file. Dedicated formatting options are also available. See
|
||||||
|
:ref:`doc_gdscript_documentation_comments` for details.
|
||||||
|
|
||||||
|
|
||||||
|
::
|
||||||
|
## This comment will appear in the script documentation.
|
||||||
|
var value
|
||||||
|
|
||||||
|
## This comment will appear in the inspector tooltip, and in the documentation.
|
||||||
|
@export var exported_value
|
||||||
|
|
||||||
Code regions
|
Code regions
|
||||||
~~~~~~~~~~~~
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user