<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=Std_TextDocument</id>
	<title>Std TextDocument - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=Std_TextDocument"/>
	<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Std_TextDocument&amp;action=history"/>
	<updated>2026-05-12T12:53:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://wiki.labrps.com/index.php?title=Std_TextDocument&amp;diff=1977&amp;oldid=prev</id>
		<title>LabRPS: Created page with &quot;{{Docnav |ProjectUtil |Group |Std Tools Menu |IconL=Std_ProjectUtil.svg |IconR=Std_Group.svg |IconC=Labrps.svg }}  {{GuiCommand |Name=Std TextDocument |MenuLocation=Tools → Add text document |Phenomena=All }}  ==Description==   The &#039;&#039;&#039;Std TextDocument&#039;&#039;&#039; command creates an object capable of holding arbitrary text. This element can be used to write general information or documentation about the model.  ==Usage==   # S...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Std_TextDocument&amp;diff=1977&amp;oldid=prev"/>
		<updated>2024-10-27T17:15:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Docnav |&lt;a href=&quot;/Std_ProjectUtil&quot; title=&quot;Std ProjectUtil&quot;&gt;ProjectUtil&lt;/a&gt; |&lt;a href=&quot;/Std_Group&quot; title=&quot;Std Group&quot;&gt;Group&lt;/a&gt; |&lt;a href=&quot;/Std_Tools_Menu&quot; title=&quot;Std Tools Menu&quot;&gt;Std Tools Menu&lt;/a&gt; |IconL=Std_ProjectUtil.svg |IconR=Std_Group.svg |IconC=Labrps.svg }}  {{GuiCommand |Name=Std TextDocument |MenuLocation=Tools → Add text document |Phenomena=All }}  ==Description==   The &amp;#039;&amp;#039;&amp;#039;Std TextDocument&amp;#039;&amp;#039;&amp;#039; command creates an object capable of holding arbitrary text. This element can be used to write general information or documentation about the model.  ==Usage==   # S...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Docnav&lt;br /&gt;
|[[Std_ProjectUtil|ProjectUtil]]&lt;br /&gt;
|[[Std_Group|Group]]&lt;br /&gt;
|[[Std_Tools_Menu|Std Tools Menu]]&lt;br /&gt;
|IconL=Std_ProjectUtil.svg&lt;br /&gt;
|IconR=Std_Group.svg&lt;br /&gt;
|IconC=Labrps.svg&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{GuiCommand&lt;br /&gt;
|Name=Std TextDocument&lt;br /&gt;
|MenuLocation=Tools → Add text document&lt;br /&gt;
|Phenomena=All&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Description== &lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Std TextDocument&amp;#039;&amp;#039;&amp;#039; command creates an object capable of holding arbitrary text. This element can be used to write general information or documentation about the model.&lt;br /&gt;
&lt;br /&gt;
==Usage== &lt;br /&gt;
&lt;br /&gt;
# Select the {{MenuCommand|Tools → [[Image:Std_TextDocument.svg|16px]] Add text document}} option from the menu.&lt;br /&gt;
# Double-click the newly created object in the [[Tree_view|Tree view]] to open a tab in which to write text.&lt;br /&gt;
# Add text.&lt;br /&gt;
# Close the tab and save the file when asked.&lt;br /&gt;
&lt;br /&gt;
==Properties== &lt;br /&gt;
&lt;br /&gt;
===View=== &lt;br /&gt;
&lt;br /&gt;
{{TitleProperty|Editor}}&lt;br /&gt;
&lt;br /&gt;
* {{PropertyView|Font Name|Font}}: a font name, for example, {{Value|Ubuntu Mono}}.&lt;br /&gt;
* {{PropertyView|Font Size|Float}}: a font size in points, for example, {{Value|11}}.&lt;br /&gt;
* {{PropertyView|Read Only|Bool}}: it defaults to {{FALSE}}. If set to {{TRUE}} the text cannot be edited. &lt;br /&gt;
* {{PropertyView|Syntax Highlighter|Enumeration}}: it defaults to {{Value|None}}. If set to {{Value|Python}}, the text will be highlighted like the [[Python_console|Python console]].&lt;br /&gt;
&lt;br /&gt;
==Scripting== &lt;br /&gt;
&lt;br /&gt;
See also: [https://labrps.github.io/SourceDoc/ Autogenerated API documentation] and [[LabRPS_Scripting_Basics|LabRPS Scripting Basics]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An {{incode|App::TextDocument}} object is created with the {{incode|addObject()}} method of the document. Once a TextDocument exists, its textual information is stored in its {{incode|Text}} attribute. &lt;br /&gt;
&lt;br /&gt;
{{Code|code=&lt;br /&gt;
import LabRPS as App&lt;br /&gt;
import Draft&lt;br /&gt;
&lt;br /&gt;
doc = App.newDocument()&lt;br /&gt;
obj = doc.addObject(&amp;quot;App::TextDocument&amp;quot;, &amp;quot;Text_document&amp;quot;)&lt;br /&gt;
obj.Text = &amp;quot;textual information&amp;quot;&lt;br /&gt;
doc.recompute()&lt;br /&gt;
&lt;br /&gt;
doc.recompute()&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Docnav&lt;br /&gt;
|[[Std_ProjectUtil|ProjectUtil]]&lt;br /&gt;
|[[Std_Group|Group]]&lt;br /&gt;
|[[Std_Tools_Menu|Std Tools Menu]]&lt;br /&gt;
|IconL=Std_ProjectUtil.svg&lt;br /&gt;
|IconR=Std_Group.svg&lt;br /&gt;
|IconC=Labrps.svg&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Std_Base_navi}}&lt;br /&gt;
{{Userdocnavi}}&lt;/div&gt;</summary>
		<author><name>LabRPS</name></author>
	</entry>
</feed>