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
+6 -2
View File
@@ -180,7 +180,9 @@ class file(object):
Class has instance methods for filtering by element Id, Type, etc.
Instantiated objects can be subscripted by Id or Guid
Example::
Example:
.. code:: python
ifc_file = ifcopenshell.open(file_path)
products = ifc_file.by_type("IfcProduct")
@@ -247,7 +249,9 @@ class file(object):
:returns: An entity instance
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
f = ifcopenshell.file()
f.create_entity("IfcPerson")