<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.smath.com/en-US/index.php?action=history&amp;feed=atom&amp;title=Snippets</id>
	<title>Snippets - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.smath.com/en-US/index.php?action=history&amp;feed=atom&amp;title=Snippets"/>
	<link rel="alternate" type="text/html" href="https://wiki.smath.com/en-US/index.php?title=Snippets&amp;action=history"/>
	<updated>2026-05-19T07:52:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://wiki.smath.com/en-US/index.php?title=Snippets&amp;diff=311&amp;oldid=prev</id>
		<title>Gleb.Zaborshchikov: /* Using Snippet */</title>
		<link rel="alternate" type="text/html" href="https://wiki.smath.com/en-US/index.php?title=Snippets&amp;diff=311&amp;oldid=prev"/>
		<updated>2025-01-21T17:06:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Using Snippet&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:06, 21 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Using the list of available dynamic input assist elements:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Using the list of available dynamic input assist elements:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#: On the calculation page, start writing the [[Snippets|snippet]] shortcut and use the drop-down list to select the desired one (the final selection can be made either with the mouse or with the keyboard, using the tips):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#: On the calculation page, start writing the [[Snippets|snippet]] shortcut and use the drop-down list to select the desired one (the final selection can be made either with the mouse or with the keyboard, using the tips):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#: [[File:Eng snippets suggestions.png]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Using built-in [[SMath Studio]] [[Extensions Manager]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Using built-in [[SMath Studio]] [[Extensions Manager]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#: In the dialog box that opens, in the list on the left, select [[Snippets]] to display all locally available [[Snippets|snippets]]. Then select the desired [[Snippets|snippet]] and click the &amp;#039;&amp;#039;Paste&amp;#039;&amp;#039; button.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#: In the dialog box that opens, in the list on the left, select [[Snippets]] to display all locally available [[Snippets|snippets]]. Then select the desired [[Snippets|snippet]] and click the &amp;#039;&amp;#039;Paste&amp;#039;&amp;#039; button.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gleb.Zaborshchikov</name></author>
	</entry>
	<entry>
		<id>https://wiki.smath.com/en-US/index.php?title=Snippets&amp;diff=310&amp;oldid=prev</id>
		<title>Gleb.Zaborshchikov at 16:56, 21 January 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.smath.com/en-US/index.php?title=Snippets&amp;diff=310&amp;oldid=prev"/>
		<updated>2025-01-21T16:56:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:56, 21 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Using the list of available dynamic input assist elements:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Using the list of available dynamic input assist elements:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#: On the calculation page, start writing the [[Snippets|snippet]] shortcut and use the drop-down list to select the desired one (the final selection can be made either with the mouse or with the keyboard, using the tips):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#: On the calculation page, start writing the [[Snippets|snippet]] shortcut and use the drop-down list to select the desired one (the final selection can be made either with the mouse or with the keyboard, using the tips):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Using built-in [[SMath Studio]] [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Extension &lt;/del&gt;Manager]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Using built-in [[SMath Studio]] [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Extensions &lt;/ins&gt;Manager]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#: In the dialog box that opens, in the list on the left, select [[Snippets]] to display all locally available [[Snippets|snippets]]. Then select the desired [[Snippets|snippet]] and click the &amp;#039;&amp;#039;Paste&amp;#039;&amp;#039; button.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#: In the dialog box that opens, in the list on the left, select [[Snippets]] to display all locally available [[Snippets|snippets]]. Then select the desired [[Snippets|snippet]] and click the &amp;#039;&amp;#039;Paste&amp;#039;&amp;#039; button.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gleb.Zaborshchikov</name></author>
	</entry>
	<entry>
		<id>https://wiki.smath.com/en-US/index.php?title=Snippets&amp;diff=309&amp;oldid=prev</id>
		<title>Gleb.Zaborshchikov: Created page with &quot;SMath Studio has a built-in mechanism for extending functionality by creating user snippets. Such snippets are created based on the usual calculations and, if necessary, are embedded in the other calculations, giving users the opportunity to reuse previously prepared logic many times.  == Snippet Creation == Snippet is based on a standard calculation prepared in SMath Studio. To create such a snippet you need to...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.smath.com/en-US/index.php?title=Snippets&amp;diff=309&amp;oldid=prev"/>
		<updated>2025-01-21T16:52:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/en-US/SMath_Studio&quot; title=&quot;SMath Studio&quot;&gt;SMath Studio&lt;/a&gt; has a built-in mechanism for extending functionality by creating &lt;a href=&quot;/en-US/Snippets&quot; title=&quot;Snippets&quot;&gt;user snippets&lt;/a&gt;. Such &lt;a href=&quot;/en-US/Snippets&quot; title=&quot;Snippets&quot;&gt;snippets&lt;/a&gt; are created based on the usual calculations and, if necessary, are embedded in the other calculations, giving users the opportunity to reuse previously prepared logic many times.  == Snippet Creation == &lt;a href=&quot;/en-US/Snippets&quot; title=&quot;Snippets&quot;&gt;Snippet&lt;/a&gt; is based on a standard calculation prepared in &lt;a href=&quot;/en-US/SMath_Studio&quot; title=&quot;SMath Studio&quot;&gt;SMath Studio&lt;/a&gt;. To create such a &lt;a href=&quot;/en-US/Snippets&quot; title=&quot;Snippets&quot;&gt;snippet&lt;/a&gt; you need to...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[SMath Studio]] has a built-in mechanism for extending functionality by creating [[Snippets|user snippets]]. Such [[Snippets|snippets]] are created based on the usual calculations and, if necessary, are embedded in the other calculations, giving users the opportunity to reuse previously prepared logic many times.&lt;br /&gt;
&lt;br /&gt;
== Snippet Creation ==&lt;br /&gt;
[[Snippets|Snippet]] is based on a standard calculation prepared in [[SMath Studio]]. To create such a [[Snippets|snippet]] you need to perform the following steps:&lt;br /&gt;
#Create a new calculation in [[SMath Studio]].&lt;br /&gt;
# In the created calculation, add a custom function, procedure, define the necessary variables or units of measure that you want to provide access to.&lt;br /&gt;
# Upon completion of filling the calculation with logic, you need to define the meta information of the calculation, for which you need to go to the &amp;#039;&amp;#039;File&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;Properties...&amp;#039;&amp;#039; dialog.&lt;br /&gt;
# On the Summary tab of the File Properties dialog, set at least the Title, Author, and Description fields.&lt;br /&gt;
# On the &amp;#039;&amp;#039;File Settings&amp;#039;&amp;#039; tab of the &amp;#039;&amp;#039;File Properties&amp;#039;&amp;#039; dialog, set the &amp;#039;&amp;#039;Snippet Shortcut&amp;#039;&amp;#039; field, which will help you quickly insert the stub into future calculations. We recommend that you use unique and short text for the label without spaces or special characters. As an example, you can see the [[Snippets]] built into [[SMath Studio]], such as &amp;#039;&amp;#039;grads&amp;#039;&amp;#039; and &amp;#039;&amp;#039;degrees&amp;#039;&amp;#039;.&lt;br /&gt;
# Save the resulting calculation locally and move it to the following folder on your PC:&lt;br /&gt;
#: %APPDATA%\SMath\extensions\snippets&lt;br /&gt;
&lt;br /&gt;
After these steps, [[Snippets|snippet]] will be available for local use.&lt;br /&gt;
&lt;br /&gt;
== Using Snippet ==&lt;br /&gt;
There are two ways to insert the available [[Snippets|snippets]] into the calculation:&lt;br /&gt;
# Using the list of available dynamic input assist elements:&lt;br /&gt;
#: On the calculation page, start writing the [[Snippets|snippet]] shortcut and use the drop-down list to select the desired one (the final selection can be made either with the mouse or with the keyboard, using the tips):&lt;br /&gt;
# Using built-in [[SMath Studio]] [[Extension Manager]].&lt;br /&gt;
#: In the dialog box that opens, in the list on the left, select [[Snippets]] to display all locally available [[Snippets|snippets]]. Then select the desired [[Snippets|snippet]] and click the &amp;#039;&amp;#039;Paste&amp;#039;&amp;#039; button.&lt;br /&gt;
&lt;br /&gt;
== Publishing Snippet ==&lt;br /&gt;
Publishing  your [[Snippets|snippet]] to [[Root Licensing Server]] for free access by third parties is optional.&lt;br /&gt;
&lt;br /&gt;
To make your [[Snippets|snippet]] a part of the standard process for delivering it to the other users, you need to complete the following steps:&lt;br /&gt;
# Go to [[Root Licensing Server]] and make sure you are logged in with your account.&lt;br /&gt;
# Go to the [https://smath.com/en-US/files/Registration Extensions registration page].&lt;br /&gt;
# On the registration form, select &amp;#039;&amp;#039;Extension type&amp;#039;&amp;#039;: Snippet and specify the path to the [[Snippets|snippet]] file, then click the &amp;#039;&amp;#039;Register&amp;#039;&amp;#039; button.&lt;br /&gt;
&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:SMath Studio]]&lt;/div&gt;</summary>
		<author><name>Gleb.Zaborshchikov</name></author>
	</entry>
</feed>