<?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[After TAB  scriptblock error]]></title><description><![CDATA[<p dir="auto">Hi all.<br />
I have a simple question:</p>
<p dir="auto">Example:<br />
<img src="/assets/uploads/files/1643006856874-error.jpg" alt="error.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">What can you do if you want to use the TAB to indent the code?<br />
Thanks for yur help.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22422/after-tab-scriptblock-error</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 10:01:29 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22422.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Jan 2022 06:50:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to After TAB  scriptblock error on Tue, 25 Jan 2022 16:24:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/venus642" aria-label="Profile: venus642">@<bdi>venus642</bdi></a></p>
<p dir="auto">WARNING !<br />
Had to realize that errors can occur when indenting. So it’s best to avoid it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73290</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73290</guid><dc:creator><![CDATA[Venus642]]></dc:creator><pubDate>Tue, 25 Jan 2022 16:24:37 GMT</pubDate></item><item><title><![CDATA[Reply to After TAB  scriptblock error on Mon, 24 Jan 2022 14:02:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mpheath" aria-label="Profile: mpheath">@<bdi>mpheath</bdi></a><br />
Thanks mpheath for your help and info.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73231</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73231</guid><dc:creator><![CDATA[Venus642]]></dc:creator><pubDate>Mon, 24 Jan 2022 14:02:12 GMT</pubDate></item><item><title><![CDATA[Reply to After TAB  scriptblock error on Mon, 24 Jan 2022 13:58:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/venus642" aria-label="Profile: venus642">@<bdi>venus642</bdi></a> said in <a href="/post/73226">After TAB scriptblock error</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/venus642" aria-label="Profile: venus642">@<bdi>venus642</bdi></a></p>
<p dir="auto">It would be nice if Notepad++ could handle that.</p>
</blockquote>
<p dir="auto">It is Powershell syntax. Notepad++ cannot do anything about how Powershell works.</p>
<p dir="auto">The Lexilla component code is:</p>
<pre><code>		} else if (sc.state == SCE_POWERSHELL_HERE_STRING) {
			// This is a doubles quotes here-string
			if (sc.atLineStart &amp;&amp; sc.ch == '\"' &amp;&amp; sc.chNext == '@') {
				sc.Forward(2);
				sc.SetState(SCE_POWERSHELL_DEFAULT);
			}
</code></pre>
<p dir="auto"><code>sc.atLineStart</code> is a condition to close the Here-string, it must be at the start of the line. It complies with the current syntax of Powershell.</p>
<p dir="auto">If you want change to support indentation of Here-strings, then Powershell core development is where the change needs to done.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73229</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73229</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Mon, 24 Jan 2022 13:58:22 GMT</pubDate></item><item><title><![CDATA[Reply to After TAB  scriptblock error on Mon, 24 Jan 2022 13:44:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/venus642" aria-label="Profile: venus642">@<bdi>venus642</bdi></a></p>
<p dir="auto">It would be nice if Notepad++ could handle that.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73226</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73226</guid><dc:creator><![CDATA[Venus642]]></dc:creator><pubDate>Mon, 24 Jan 2022 13:44:37 GMT</pubDate></item><item><title><![CDATA[Reply to After TAB  scriptblock error on Mon, 24 Jan 2022 13:42:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/venus642" aria-label="Profile: venus642">@<bdi>venus642</bdi></a><br />
<img src="/assets/uploads/files/1643031634859-error1.jpg" alt="error1.jpg" class=" img-fluid img-markdown" /><br />
Not so nice …</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73225</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73225</guid><dc:creator><![CDATA[Venus642]]></dc:creator><pubDate>Mon, 24 Jan 2022 13:42:07 GMT</pubDate></item><item><title><![CDATA[Reply to After TAB  scriptblock error on Mon, 24 Jan 2022 13:33:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mpheath" aria-label="Profile: mpheath">@<bdi>mpheath</bdi></a> said in <a href="/post/73222">After TAB scriptblock error</a>:</p>
<blockquote>
<p dir="auto">Looks to be the Powershell language.<br />
Quote from Microsofts Powershell about_Quoting_Rules documentation on Here-strings.</p>
<p dir="auto">In either format, the closing quotation mark must be the first character in the line.</p>
<p dir="auto">So it appears that "@ needs to be at the start of the line to be valid syntax.<br />
Powershell Here-strings are not designed for indenting. So you may need to break the implied rule of indenting by:</p>
</blockquote>
<p dir="auto"><img src="/assets/uploads/files/1643031101209-error.jpg" alt="error.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Yes, powershell problem…<br />
Yes ugly, I would like it to be fully indented…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73223</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73223</guid><dc:creator><![CDATA[Venus642]]></dc:creator><pubDate>Mon, 24 Jan 2022 13:33:26 GMT</pubDate></item><item><title><![CDATA[Reply to After TAB  scriptblock error on Mon, 24 Jan 2022 13:20:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/venus642" aria-label="Profile: venus642">@<bdi>venus642</bdi></a></p>
<p dir="auto">Looks to be the Powershell language.</p>
<p dir="auto">Quote from Microsofts Powershell <a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules?view=powershell-7.2#here-strings" rel="nofollow ugc">about_Quoting_Rules</a> documentation on Here-strings.</p>
<blockquote>
<p dir="auto">In either format, the closing quotation mark must be the first character in the line.</p>
</blockquote>
<p dir="auto">So it appears that <code>"@</code> needs to be at the start of the line to be valid syntax.</p>
<p dir="auto">Powershell Here-strings are not designed for indenting. So you may need to break the implied rule of indenting by:</p>
<pre><code>function test1
{
$test = @"
This is a test
"@
}

	function test2
	{
	$test = @"
This is a test
"@
	}
</code></pre>
<p dir="auto">Looks ugly though it is valid syntax.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73222</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73222</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Mon, 24 Jan 2022 13:20:52 GMT</pubDate></item><item><title><![CDATA[Reply to After TAB  scriptblock error on Mon, 24 Jan 2022 13:11:12 GMT]]></title><description><![CDATA[<p dir="auto">Well you would go to the <em>Settings</em> menu and choose <em>Preferences…</em> and then see:</p>
<p dir="auto"><img src="/assets/uploads/files/1643029829484-1b6845c3-186b-47c2-9938-cbc062ee0b81-image.png" alt="1b6845c3-186b-47c2-9938-cbc062ee0b81-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And you would change the setting for the language of interest (maybe what you show is Perl?).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73220</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73220</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 24 Jan 2022 13:11:12 GMT</pubDate></item></channel></rss>