<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CASE statement help lines]]></title><description><![CDATA[<p dir="auto">left is np++ right another tool (TOAD)<br />
theres a nice help lines indicating the structure for my case statement;<br />
anyone know of anything in np++ that would get me something similar?</p>
<p dir="auto"><img src="/assets/uploads/files/1665753103204-f467c164-9793-4b15-9aba-04837102057d-image.png" alt="f467c164-9793-4b15-9aba-04837102057d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">thanks in advance for any word!<br />
Kr<br />
Ron</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23607/case-statement-help-lines</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 12:56:55 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23607.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Oct 2022 13:12:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CASE statement help lines on Fri, 14 Oct 2022 14:44:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a><br />
now i see what you mean with that<br />
Settings &gt; Style Configurator &gt; Global Styles &gt; Fold active color setting<br />
hadnt noticed that! that helps<br />
thanks for you replies!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80599</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80599</guid><dc:creator><![CDATA[rvw80]]></dc:creator><pubDate>Fri, 14 Oct 2022 14:44:43 GMT</pubDate></item><item><title><![CDATA[Reply to CASE statement help lines on Fri, 14 Oct 2022 14:39:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rvw80" aria-label="Profile: rvw80">@<bdi>rvw80</bdi></a> ,</p>
<p dir="auto">As I said, Notepad++'s solution for showing you what level of code-folding you are at is to color the folding indicators on the left, which all your screenshots have shown is working right.</p>
<p dir="auto">The red you showed in your most recent screenshot is the parentheses-matching feature of Notepad++, which is independent of language and a completely separate feature from the block/folding indicator already described. (It works even when no language is selected – ie, on plain text, which has no concept of blocks/folding.)</p>
<p dir="auto">And as this Forum’s various FAQs, including the “<a href="https://community.notepad-plus-plus.org/topic/21965/please-read-this-before-posting">Please Read Before Posting</a>”, we fellow users in the Forum cannot make changes to the codebase for you.  We can only help you with features that are already there, and sometimes make suggestions for workarounds.  Even if you do follow the FAQs to figure out where to make a feature request, it is my guess that the developers would not implement anything new, because Notepad++ already shows you which level of block/folding you are at.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80598</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80598</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 14 Oct 2022 14:39:06 GMT</pubDate></item><item><title><![CDATA[Reply to CASE statement help lines on Fri, 14 Oct 2022 14:03:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a><br />
i saw putting CASE between brackets gives this<br />
<img src="/assets/uploads/files/1665756137832-90bf7d16-e1f3-4be2-a77d-02c6e909103d-image.png" alt="90bf7d16-e1f3-4be2-a77d-02c6e909103d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">would be nice it could give the bracket vertical lining on the CASE itself allready</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80597</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80597</guid><dc:creator><![CDATA[rvw80]]></dc:creator><pubDate>Fri, 14 Oct 2022 14:03:18 GMT</pubDate></item><item><title><![CDATA[Reply to CASE statement help lines on Fri, 14 Oct 2022 13:57:06 GMT]]></title><description><![CDATA[<p dir="auto">this is a snippet of the SQL:</p>
<pre><code>           CASE
           WHEN  -- any trx_class except CM
                 apsa.class &lt;&gt; 'CM'                        
           THEN  
                CASE 
                WHEN -- due after as-of-date 
                     apsa.due_date &gt; to_date(to_char(aod.asofdate,'YYYY/MM/DD')) 
                THEN
                     CASE
                     WHEN      'Local Currency' = 'Local Currency'
                           AND apsa.exchange_rate_type IS NOT NULL
                     THEN  
                           ar_arxagmw_xmlp_pkg.due_amt_as_of_date(aod.asofdate
                                                                 ,apsa.amount_due_remaining
                                                                 ,apsa.payment_schedule_id
                                                                 ,apsa.class)
                           * apsa.exchange_rate
                     ELSE 
                           ar_arxagmw_xmlp_pkg.due_amt_as_of_date(aod.asofdate
                                                                 ,apsa.amount_due_remaining
                                                                 ,apsa.payment_schedule_id
                                                                 ,apsa.class)                               
                     END
                ELSE -98
                END
           ELSE  -- apsa.class = 'CM'                      
                CASE
                WHEN trunc(apsa.gl_date_closed) &lt;= trunc(to_date(to_char(aod.asofdate,'YYYY/MM/DD')))  
                THEN
                     -99
                ELSE     
                     CASE
                     WHEN      'Local Currency'             = 'Local Currency'
                           AND apsa.exchange_rate_type IS NOT NULL
                     THEN  
                           ar_arxagmw_xmlp_pkg.due_amt_as_of_date(aod.asofdate
                                                                 ,apsa.amount_due_remaining
                                                                 ,apsa.payment_schedule_id
                                                                 ,apsa.class)
                           * apsa.exchange_rate
                     ELSE 
                           ar_arxagmw_xmlp_pkg.due_amt_as_of_date(aod.asofdate
                                                                 ,apsa.amount_due_remaining
                                                                 ,apsa.payment_schedule_id
                                                                 ,apsa.class)                               
                     END 
                END
           END
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/80596</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80596</guid><dc:creator><![CDATA[rvw80]]></dc:creator><pubDate>Fri, 14 Oct 2022 13:57:06 GMT</pubDate></item><item><title><![CDATA[Reply to CASE statement help lines on Fri, 14 Oct 2022 13:50:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> hi Peter this is SQL</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80595</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80595</guid><dc:creator><![CDATA[rvw80]]></dc:creator><pubDate>Fri, 14 Oct 2022 13:50:31 GMT</pubDate></item><item><title><![CDATA[Reply to CASE statement help lines on Fri, 14 Oct 2022 13:46:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rvw80" aria-label="Profile: rvw80">@<bdi>rvw80</bdi></a> ,</p>
<p dir="auto">You don’t tell us what language you are using; since there are more than 80 languages in Notepad++, that makes it hard to replicate your results, since you would be relying on the person who is helping you to just happen to recognize what language it is you are using.  You also don’t give us any example text in a text box using the <code>&lt;/&gt;</code> button in the post-creating window, so instead of being able to copy/paste your example text, we have to read a shrunken image and then type it ourselves. :-(</p>
<p dir="auto">That said, the folding and the indent guides together are supposed to indicate the current level for code blocks.</p>
<p dir="auto">If you look on the folding column from row 154 to 174 (the entirety of the active CASE region), the folding for that section is marked red, as the active fold.  (That color is set by the <a href="https://npp-user-manual.org/docs/preferences/#global-styles" rel="nofollow ugc">Settings &gt; Style Configurator &gt; Global Styles &gt; Fold active</a> color setting)</p>
<p dir="auto">Normally the indent guides (the dotted vertical lines) also help with that, but since yours seem to be every character, rather than every Nth character, they seem less useful to me.  Do you have your tab size set to 1 for the active language (<a href="https://npp-user-manual.org/docs/preferences/#language" rel="nofollow ugc">Settings &gt; Preferences &gt; Language</a> &gt; <code>&lt;language name&gt;</code> &gt; Tab size)?  I guess that might make sense if you really don’t want a fixed column width (it looks like some of your columns are 5, some are 6, if I count invisible spacing correctly in your image), but that would annoy me to no end – why not set it to 5 or 6 characters and have consistent column alignment?  Oh, well, to each their own.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80594</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80594</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 14 Oct 2022 13:46:37 GMT</pubDate></item></channel></rss>