Fix syntax highlighting for various languages (#3387)

This commit is contained in:
Yuri Sizov
2020-04-15 16:33:20 +02:00
committed by GitHub
parent d5fd8a3841
commit 4acf7a6563
21 changed files with 122 additions and 79 deletions
+6 -6
View File
@@ -45,7 +45,7 @@ The example module will be called "summator", and is placed inside the
Godot source tree (``C:\godot`` refers to wherever the Godot sources are
located):
::
.. code-block:: console
C:\godot> cd modules
C:\godot\modules> mkdir summator
@@ -114,7 +114,7 @@ And then the cpp file.
Then, the new class needs to be registered somehow, so two more files
need to be created:
::
.. code-block:: none
register_types.h
register_types.cpp
@@ -211,7 +211,7 @@ this case, ``True`` means it will build for every platform).
And that's it. Hope it was not too complex! Your module should look like
this:
::
.. code-block:: none
godot/modules/summator/config.py
godot/modules/summator/summator.h
@@ -385,7 +385,7 @@ Once compiled, we should end up with a ``bin`` directory containing both the
a standard directory (like ``/usr/lib``), we have to help our binary find it
during runtime with the ``LD_LIBRARY_PATH`` environ variable:
::
.. code-block:: shell
user@host:~/godot$ export LD_LIBRARY_PATH=`pwd`/bin/
user@host:~/godot$ ./bin/godot*
@@ -431,7 +431,7 @@ and as a shared library when passing ``summator_shared=yes``.
Finally you can even speedup build further by explicitly specifying your
shared module as target in the scons command:
::
.. code-block:: shell
user@host:~/godot$ scons summator_shared=yes platform=linuxbsd bin/libsummator.linuxbsd.tools.64.so
@@ -473,7 +473,7 @@ directory.
3. Run command:
::
.. code-block:: shell
godot --doctool <path>