mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Use literal blocks for code samples with GDScript.
GDScript is already the default, it's redundant to specify it explicitly. A [literal block][1] is already enough. [1]: https://www.sphinx-doc.org/en/1.8/usage/restructuredtext/basics.html#rst-literal-blocks
This commit is contained in:
@@ -264,7 +264,7 @@ The module should include the full Java path. For our example: ``org/godotengine
|
||||
|
||||
Then, from your script:
|
||||
|
||||
.. code::
|
||||
::
|
||||
|
||||
if Engine.has_singleton("MySingleton"):
|
||||
var singleton = Engine.get_singleton("MySingleton")
|
||||
|
||||
Reference in New Issue
Block a user