<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Is it possible to add regions to ST-code?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8247e71592/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8247e71592/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/8247e71592/</id><updated>2023-06-27T08:17:02.923000Z</updated><subtitle>Recent posts to Is it possible to add regions to ST-code?</subtitle><entry><title>Is it possible to add regions to ST-code?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8247e71592/?limit=250#5b46/9783" rel="alternate"/><published>2023-06-27T08:17:02.923000Z</published><updated>2023-06-27T08:17:02.923000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.com019b0617d68a33935ed27f0c8864afa5047c22fe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;{region "Description"}&lt;/span&gt;
&lt;span class="err"&gt;// code&lt;/span&gt;
&lt;span class="err"&gt;// code&lt;/span&gt;
&lt;span class="err"&gt;{endregion}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Is it possible to add regions to ST-code?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8247e71592/?limit=25#5b46" rel="alternate"/><published>2020-02-27T13:51:36.467000Z</published><updated>2020-02-27T13:51:36.467000Z</updated><author><name>r.evbatyrov</name><uri>https://forge.codesys.com/u/r-evbatyrov/</uri></author><id>https://forge.codesys.com89379e1bc9612be6f5082648cf3e547cfa12104f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Kim,&lt;/p&gt;
&lt;p&gt;yes, it is possible since CODESYS V3.5 SP9 with the following syntax&lt;/p&gt;
&lt;p&gt;{region "Description"}&lt;br/&gt;
// code&lt;br/&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;br/&gt;
Roman&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Is it possible to add regions to ST-code?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8247e71592/?limit=25#dd94" rel="alternate"/><published>2020-02-27T13:51:36.304000Z</published><updated>2020-02-27T13:51:36.304000Z</updated><author><name>Kim</name><uri>https://forge.codesys.com/u/kim/</uri></author><id>https://forge.codesys.com60ca9f2e9467ca5d0ecdbace0942e253e1d7537f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In order to structure my ST-code I sometimes would like to be able to collapse/expand parts of the code to my own liking.&lt;br/&gt;
For example, in C# you can use #region and #endregion to create your own "folds".&lt;/p&gt;
&lt;p&gt;Does something similar exist in Codesys? I've searched the built-in help and forums but came up empty.&lt;br/&gt;
As of now, my workaround is to put my code within dummy IF-statements which then can be collapsed separately.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>