Make syntax highlighting explicit in docs

This commit is contained in:
Dion Moult
2023-01-10 10:16:28 +11:00
parent 66e067d1ce
commit c8ba96cde8
236 changed files with 753 additions and 251 deletions
@@ -93,7 +93,9 @@ class entity_instance(object):
An instantiated entity_instance will have methods of Python and the IFC class itself.
Example::
Example:
.. code:: python
ifc_file = ifcopenshell.open(file_path)
products = ifc_file.by_type("IfcProduct")
@@ -268,7 +270,9 @@ class entity_instance(object):
:returns: Either the name of the class, or a boolean if it passes the check
:rtype: string|bool
Example::
Example:
.. code:: python
f = ifcopenshell.file()
f.create_entity('IfcPerson')
@@ -342,7 +346,9 @@ class entity_instance(object):
:returns: A dictionary of properties and their corresponding values
:rtype: dict
Example::
Example:
.. code:: python
ifc_file = ifcopenshell.open(file_path)
products = ifc_file.by_type("IfcProduct")