<?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[sql language style issue with &#x5C;&quot;]]></title><description><![CDATA[<p dir="auto">The built in sql language style seems to have issues parsing quoted literal string ending with a backslash, such as “C:\SQL Data\2019”.</p>
<p dir="auto">It looks as though the trailing backslash is being interpreted as an escape character which is causes a mismatched number of slashes and the wrong text rendered as a literal (grey colour).</p>
<p dir="auto">See lines 35,36,37 on these examples:</p>
<p dir="auto">With trailing slashes<br />
<img src="https://camo.nodebb.org/437b66b1348569ab07654a40cd1ed52f8c6c927e?url=https%3A%2F%2Fi.ibb.co%2FXSFRdxD%2FIssue.png" alt="Issue" class=" img-fluid img-markdown" /></p>
<p dir="auto">Without trailing slashes<br />
<img src="https://camo.nodebb.org/750174b515dd85cdb26dc942829af7ab87801cdc?url=https%3A%2F%2Fi.ibb.co%2F4V4W1Sy%2FFixed.png" alt="Fixed" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22621/sql-language-style-issue-with</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 08:23:03 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22621.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Feb 2022 12:55:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Sun, 09 Mar 2025 01:15:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a></p>
<p dir="auto">I just tried the <code>Notepad++.MSVC.x64.Release</code> artifact and am impressed. It changes directly in the editor pane with checking and unchecking the checkbox. I tried cloned view and works good with both panes. I see <code>NPPM_ACTIVATEDOC</code>, that I presume it is helping to refresh the property change live.</p>
<p dir="auto">I have tested multiple Notepad++ restarts, checkbox changes and buffer changes. Tests are so good, that it should IMO fix and close the issue ticket <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16244" rel="nofollow ugc">#16244</a>.</p>
<p dir="auto">Well done!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100244</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100244</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Sun, 09 Mar 2025 01:15:26 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Sat, 08 Mar 2025 20:50:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24257">@mpheath</a> ,</p>
<p dir="auto">Thanks for that idea.  Merging your idea, with my idea of checking of whether or not a given buffer is SQL before applying the property, I am able to loop through all buffers, and for any that are SQL, apply the updated property.</p>
<p dir="auto">When I run it, it seems to work live (when the checkbox is toggled) when I have one ore more SQL files in one or both views (or with files only in one view)</p>
<p dir="auto">If you could test the appropriate <a href="https://github.com/pryrt/notepad-plus-plus/actions/runs/13741288245#artifacts" rel="nofollow ugc">artifact from this build</a>, and make sure that it’s consistent, and not just “working” for me, I’d appreciate it.</p>
<hr />
<p dir="auto"><em>(Future readers: the artifacts for a given build aren’t around for more than 30 days, due to github retention policy; don’t bother trying to follow this link in the future)</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/100243</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100243</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 08 Mar 2025 20:50:27 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Sat, 08 Mar 2025 04:54:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a></p>
<p dir="auto">Based on 8.7.8 release master</p>
<pre><code>diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp
index 19b26bda2..77d1bcc3b 100644
--- a/PowerEditor/src/NppBigSwitch.cpp
+++ b/PowerEditor/src/NppBigSwitch.cpp
@@ -4144,6 +4144,12 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
 			return TRUE;
 		}
 
+		case NPPM_INTERNAL_SQLBACKSLASHESCAPE:
+		{
+			const bool kbBackSlash = NppParameters::getInstance().getNppGUI()._backSlashIsEscapeCharacterForSql;
+			_pEditView-&gt;execute(SCI_SETPROPERTY, reinterpret_cast&lt;WPARAM&gt;("sql.backslash.escapes"), reinterpret_cast&lt;LPARAM&gt;(kbBackSlash ? "1" : "0"));
+		}
+
 		default:
 		{
 			if (message == WDN_NOTIFY)
diff --git a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp
index dbf20b4b1..cbdba9381 100644
--- a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp
+++ b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp
@@ -3900,6 +3900,8 @@ intptr_t CALLBACK LanguageSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARA
 				case IDC_CHECK_BACKSLASHISESCAPECHARACTERFORSQL:
 				{
 					nppGUI._backSlashIsEscapeCharacterForSql = isCheckedOrNot(IDC_CHECK_BACKSLASHISESCAPECHARACTERFORSQL);
+					HWND grandParent = ::GetParent(_hParent);
+					::SendMessage(grandParent, NPPM_INTERNAL_SQLBACKSLASHESCAPE, 0, 0);
 					return TRUE;
 				}
 
diff --git a/PowerEditor/src/resource.h b/PowerEditor/src/resource.h
index 842a04afb..71655deae 100644
--- a/PowerEditor/src/resource.h
+++ b/PowerEditor/src/resource.h
@@ -747,6 +747,7 @@
 	#define NPPM_INTERNAL_CHECKDOCSTATUS                (NOTEPADPLUS_USER_INTERNAL + 106)
 	#define NPPM_INTERNAL_HIDEMENURIGHTSHORTCUTS        (NOTEPADPLUS_USER_INTERNAL + 107)
 	#define NPPM_INTERNAL_RELOADFUNCTIONLIST            (NOTEPADPLUS_USER_INTERNAL + 108)
+	#define NPPM_INTERNAL_SQLBACKSLASHESCAPE            (NOTEPADPLUS_USER_INTERNAL + 109)

</code></pre>
<p dir="auto">It is not an instant visual change in the current buffer. It changes once the preferences dialog closes. Changing buffer to another buffer can show another SQL document with opposite backslash escape setting as the blank document is still an issue with the property change being sent to the blank document. So while it does not fix the core issue, the preferences dialog can be opened again and check the checkbox again to send the message to apply to the current buffer that needs the change of property.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100236</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100236</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Sat, 08 Mar 2025 04:54:19 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Fri, 07 Mar 2025 18:30:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24257">@mpheath</a> ,</p>
<p dir="auto">Hmm… so a roadblock, probably due to my unfamiliarity with the source code…</p>
<p dir="auto">I think I need access to the object instance for the active editor.  But as far as I can tell, the <code>preferencesDlg.cpp</code> doesn’t have access to that, or to any other object that I can find that would allow me to get the current editor as a property/method.  I actually need that to both find out what the current lexer is (because, obviously, we don’t need to change the SQL-specific attribute if SQL isn’t the language) and to be able to have access to the <code>execute()</code> method to actually set that.</p>
<p dir="auto">So far, I haven’t found examples of anything in the preferencesDlg.cpp that needs that or similar object, so I cannot see a way it’s already been done – and I doubt Don would like it if I started bringing in new headers/objects willy-nilly, especially since I don’t understand all the implications of such.</p>
<p dir="auto">I’ll keep looking on my own, but if anyone here knows some other action in the preferences dialog that needs to interact with the active editor object, I’d appreciate it being pointed out.</p>
<hr />
<p dir="auto"><em>update</em>: or is the expectation that things would be done through messages? I see that the DarkMode preferences send messages, so maybe I’ll try something similar for this one…<br />
<em>update2</em>: … oh, but while messages can get me the langType of the current buffer, it still doesn’t give me access to the hwnd for the buffer’s scintilla component, so I still cannot set the property from in there. :-(  I may have bitten off more than I can chew with trying to go down this route.  (I had originally assumed that the active editor object was something global enough that I could get it from the checkbox-changed processing.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100228</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100228</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 07 Mar 2025 18:30:43 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Fri, 07 Mar 2025 17:31:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a></p>
<p dir="auto">Changing the property in preferences would probably be like how with PythonScript needs to use a callback. Changing buffers in Notepad++ use of callback is currently broken with the empty document substitute. So another sql document probably would not get the property change. This is why in the last edit I mentioned about possible failure in the idea of directly using preferences to change the property.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100226</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100226</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Fri, 07 Mar 2025 17:31:17 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Fri, 07 Mar 2025 17:18:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24257">@mpheath</a> said in <a href="/post/100222">sql language style issue with \"</a>:</p>
<blockquote>
<p dir="auto">Compile and then &lt; v8.7.5 like behavior is restored and the sql.backslash.escapes property can be changed.</p>
</blockquote>
<p dir="auto">Yeah, I’m not sure what other issues would be introduced by getting rid of all of those logics and treating everything as if isFirstActiveBuffer.</p>
<p dir="auto">And, even if it did, the &lt;=v8.7.5 behavior is still not ideal, because it still requires switching to a different buffer and back to see that the preference has changed – that’s better than having to close the file, but it’s still not a good user experience.</p>
<blockquote>
<p dir="auto"><strong>Edit:</strong> The idea of setting the property directly from the preferences dialog might get around this blank document substitute issue as the actual document is loaded at that time.</p>
</blockquote>
<p dir="auto">Yes, that is what I’m starting to explore at this point</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100225</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100225</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 07 Mar 2025 17:18:22 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Fri, 07 Mar 2025 17:20:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a></p>
<p dir="auto">It is the temporary blank document being used on change of buffer then reassigned the actual document that seems to be causing the issue with the property not changing.</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/829cd9d11904a307230be92afb4023baa1e2606a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp#L2379" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/blob/829cd9d11904a307230be92afb4023baa1e2606a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp#L2379</a></p>
<pre><code>		execute(SCI_SETDOCPOINTER, 0, getBlankDocument());
</code></pre>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/288">@xomx</a> mentioned an issue with <code>blank-document temporary substitute</code> in a <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16245#issuecomment-2705188173" rel="nofollow ugc">PR #16245</a></p>
<p dir="auto">If you comment out most of the code block</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/829cd9d11904a307230be92afb4023baa1e2606a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp#L2351-L2387" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/blob/829cd9d11904a307230be92afb4023baa1e2606a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp#L2351-L2387</a></p>
<p dir="auto">and just leave uncommented</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/829cd9d11904a307230be92afb4023baa1e2606a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp#L2356-L2362" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/blob/829cd9d11904a307230be92afb4023baa1e2606a/PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp#L2356-L2362</a></p>
<pre><code>		execute(SCI_SETMODEVENTMASK, MODEVENTMASK_OFF);
		execute(SCI_SETDOCPOINTER, 0, _currentBuffer-&gt;getDocument());
		execute(SCI_SETMODEVENTMASK, MODEVENTMASK_ON);

		// Due to execute(SCI_CLEARDOCUMENTSTYLE); in defineDocType() function
		// defineDocType() function should be called here, but not be after the fold info loop
		defineDocType(_currentBuffer-&gt;getLangType());
</code></pre>
<p dir="auto">Compile and then &lt; v8.7.5 like behavior is restored and the <code>sql.backslash.escapes</code> property can be changed.</p>
<hr />
<p dir="auto"><strong>Edit</strong>: The idea of setting the property directly from the preferences dialog might get around this blank document substitute issue as the actual document is loaded at that time.</p>
<p dir="auto">Though it is not at buffer change time so may fail from the preferences dialog. May need testing to make sure if the idea might work.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100222</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100222</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Fri, 07 Mar 2025 17:20:47 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Fri, 07 Mar 2025 03:21:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> said in <a href="/post/100216">sql language style issue with \"</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24257">@mpheath</a> said in <a href="/post/100215">sql language style issue with \"</a>:</p>
<blockquote>
<p dir="auto">1st commit after v8.7.5 release compiled shows the buffer change problem with the property.</p>
</blockquote>
<p dir="auto">Wow, didn’t take 'em long to make the refresh worse after that version.</p>
<p dir="auto">I was really surprised earlier, when single-stepping through the code, that even though the SETPROPERTY message is sent, Lexilla doesn’t refresh… I am wondering whether it has something to do with all the SETMODEEVENTMASK calls that were added for “efficiency”.</p>
</blockquote>
<p dir="auto">In the latest master I tried <code>SC_MODEVENTMASKALL</code> and noticed no difference with the property. I would need to try it with the 1st commit after v8.7.5 release to confirm.</p>
<blockquote>
<p dir="auto">However, even if it were to go back to v8.7.5 behavior for toggling the preference, is that sufficient?  Because even ver&lt;=v8.7.5 required toggling to a different tab and back – ie, forcing a manual refresh of the scintilla display; and really, I don’t think a manual refresh should be necessary.</p>
</blockquote>
<p dir="auto">The preferences dialog just sets values to variables. There is the caret line background that is instant so perhaps the property could be instant too. If it could execute <code>SET_PROPERTY</code> in the dialog then it would be as good as PythonScript <code>editor.setPropertry()</code> instant behaviour, so if possible, sounds good if is acceptable by the maintainer.</p>
<blockquote>
<p dir="auto">Is there a way to force Scintilla to redraw on command?  What I’m thinking is that if there were a way, we could send that SCI message immediately after updating the  preference and/or closing the dialog.  I might see if I can play around with that tomorrow.  (it wouldn’t be a degredation in “efficiency” at that point, since it would only be on-demand when the preference was toggled) – but being able to see it update as soon as the preference is toggled would really improve the usability of that preference.</p>
</blockquote>
<p dir="auto">The variable changes in the preferences dialog. When the tab changes, that event causes the <code>setSqlLexer()</code> function to be called so the variable value is used there to call <code>SET_PROPERTY</code>. The later call to <code>SET_PROPERTY</code> needs to occur in the preferences dialog to get instant change that you seem to be asking for. The requested refresh is done calling <code>SET_PROPERTY</code> same as <code>editor.setProperty()</code>. AFAIK, no extra magic <code>SCI_REFRESH</code> is needed.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100217</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100217</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Fri, 07 Mar 2025 03:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Fri, 07 Mar 2025 02:41:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24257">@mpheath</a> said in <a href="/post/100215">sql language style issue with \"</a>:</p>
<blockquote>
<p dir="auto">1st commit after v8.7.5 release compiled shows the buffer change problem with the property.</p>
</blockquote>
<p dir="auto">Wow, didn’t take 'em long to make the refresh worse after that version.</p>
<p dir="auto">I was really surprised earlier, when single-stepping through the code, that even though the SETPROPERTY message is sent, Lexilla doesn’t refresh… I am wondering whether it has something to do with all the SETMODEEVENTMASK calls that were added for “efficiency”.</p>
<p dir="auto">However, even if it were to go back to v8.7.5 behavior for toggling the preference, is that sufficient?  Because even ver&lt;=v8.7.5 required toggling to a different tab and back – ie, forcing a manual refresh of the scintilla display; and really, I don’t think a manual refresh should be necessary.</p>
<p dir="auto">Is there a way to force Scintilla to redraw on command?  What I’m thinking is that if there were a way, we could send that SCI message immediately after updating the  preference and/or closing the dialog.  I might see if I can play around with that tomorrow.  (it wouldn’t be a degredation in “efficiency” at that point, since it would only be on-demand when the preference was toggled) – but being able to see it update as soon as the preference is toggled would really improve the usability of that preference.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100216</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100216</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 07 Mar 2025 02:41:36 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Fri, 07 Mar 2025 01:21:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a></p>
<p dir="auto">Nice fix on initial checkbox state.</p>
<p dir="auto">By process of elimination, may need to create branches with some checkouts of before and after features were added, compile and test. That should narrow it down.</p>
<p dir="auto">v8.7.5 release tests OK with changing the property.</p>
<p dir="auto">1st commit after v8.7.5 release compiled shows the buffer change problem with the property.</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/commit/de9ffd2ea8507d033f7f111d8b48762f7d3b9436" rel="nofollow ugc">Enhance large files with syntax highlighting performance</a></p>
<blockquote>
<p dir="auto">apparently, the Syntax Highlighter “efficiency” improvements made it harder to get the lexer to see the new state.</p>
</blockquote>
<p dir="auto">Appears to be a correct. “efficiency” and “optimization” is terms that makes me go hmm with these large file improvements.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100215</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100215</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Fri, 07 Mar 2025 01:21:13 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Thu, 06 Mar 2025 16:35:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24257">@mpheath</a> said in <a href="/post/100200">sql language style issue with \"</a>:</p>
<blockquote>
<p dir="auto">Seems overlooked as to why the code to do this does not currently exist.</p>
</blockquote>
<p dir="auto">Ahh, I think I found it: essentially that line currently exists in <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/99d3f86d8be9aeeda46b549497ef9b1ba43cd437/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp#L3336-L3364" rel="nofollow ugc">IndentationSubDlg::run_dlgProc()'s <code>WM_INITDIALOG</code></a> rather than in the<br />
<a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/99d3f86d8be9aeeda46b549497ef9b1ba43cd437/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp#L3745-L3794" rel="nofollow ugc">LanguageSubDlg::run_dlgProc()'s <code>WM_INITDIALOG</code></a> where you put it.</p>
<p dir="auto">When Indentation preferences was split off from the Language preferences in <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/commit/439bbb04d2fae1c1e3d3362049a1fc84866511b7" rel="nofollow ugc">439bbb0</a>, it accidentally included the IDC_CHECK_BACKSLASHISESCAPECHARACTERFORSQL.</p>
<p dir="auto">—</p>
<p dir="auto">Update: submitted <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16253" rel="nofollow ugc">PR #16253</a> to move that line</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100206</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100206</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 06 Mar 2025 16:35:12 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Thu, 06 Mar 2025 01:21:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> Definitely a problem I see with the checkbox initial state and the set of the property.</p>
<p dir="auto">The checkbox initial state needs 1 line of code to make it work. Seems overlooked as to why the code to do this does not currently exist.</p>
<pre><code>diff --git a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp
index 13409f709..a1cb7e7f6 100644
--- a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp
+++ b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp
@@ -3790,6 +3790,8 @@ intptr_t CALLBACK LanguageSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARA
 			::EnableWindow(::GetDlgItem(_hSelf, IDC_BUTTON_REMOVE), FALSE);
 			::EnableWindow(::GetDlgItem(_hSelf, IDC_BUTTON_RESTORE), FALSE);
 
+			::SendDlgItemMessage(_hSelf, IDC_CHECK_BACKSLASHISESCAPECHARACTERFORSQL, BM_SETCHECK, nppGUI._backSlashIsEscapeCharacterForSql ? TRUE : FALSE, 0);
+
 			return TRUE;
 		}
</code></pre>
<p dir="auto">The property setting change of <code>sql.backslash.escapes</code> internally is ignored as PythonScript <code>editor.getProperty('sql.backslash.escapes')</code> shows no change in value. It’s like Lexilla is not receiving from the internally called <code>SCI_SETPROPERTY</code> to change the value. Yet, PythonScript can change the property so is a mystery to why the internal call is being ignored. <code>setSqlLexer()</code> is called on buffer change and <code>_backSlashIsEscapeCharacterForSql </code> value changes so do not know yet what is causing the failure to apply the property. I have been busy to find the cause and have little to show for it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100200</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100200</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Thu, 06 Mar 2025 01:21:11 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Wed, 05 Mar 2025 23:08:46 GMT]]></title><description><![CDATA[<p dir="auto">Since no one tried my StR, but they show the problem 100% of the time for me, I put in <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16249" rel="nofollow ugc">Issue #16249</a> for the preference checkmark not being remembered after restart, and having the rendering not being the same as what the preference shows.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100197</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100197</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 05 Mar 2025 23:08:46 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Tue, 04 Mar 2025 18:48:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> said in <a href="/post/100177">sql language style issue with \"</a>:</p>
<blockquote>
<p dir="auto">using Notepad++ 8.7.5</p>
</blockquote>
<p dir="auto">Confirmed: with v8.7.5 and earlier, changing tab is sufficient.  But when I try with v8.7.6, v8.7.7, or v8.7.8-RC2, I have to close the tab and re-open it (the <code>Ctrl+W</code>, <code>Ctrl+Shift+T</code> from my StR) in order to get it to re-render: apparently, the Syntax Highlighter “efficiency” improvements made it harder to get the lexer to see the new state.</p>
<p dir="auto">I’m going to create the issue for this preference highlighting-refresh first.  Then I will later (hopefully after someone confirms my StR) create the issue for the preference not showing the stored state correctly in versions newer than v8.6.9</p>
<hr />
<p dir="auto"><em>update</em>:  created <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16244" rel="nofollow ugc">issue #16244</a> for the preference refresh</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100183</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100183</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 04 Mar 2025 18:48:13 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Tue, 04 Mar 2025 17:14:00 GMT]]></title><description><![CDATA[<p dir="auto">For the main issue (escaping), I believe I have some Steps to Reproduce.  Before putting in a bug report, I’d like confirmation that I’ve got the StR correct:</p>
<p dir="auto">Create the file <code>escape.sql</code></p>
<pre><code>select 'ABCDE' from dual where 1=1;
select 'AB\CDE' from dual where 1=1;
select 'ABCDE\' from dual where 1=1;
select 'ABCDE' from dual where 1=1;
select 'AB\CDE' from dual where 1=1;
</code></pre>
<p dir="auto">The expectation is that</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>state</th>
<th>screenshot</th>
<th>desc</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>\</code> is escape char</td>
<td><img src="/assets/uploads/files/1741107498995-f6ce04cf-fdd4-4a3d-841d-4d2df6d3c667-image.png" alt="f6ce04cf-fdd4-4a3d-841d-4d2df6d3c667-image.png" class=" img-fluid img-markdown" /></td>
<td><code>\'</code> will <em>not</em> end the string</td>
</tr>
<tr>
<td><code>\</code> is normal char</td>
<td><img src="/assets/uploads/files/1741107516501-6403309f-a980-4b57-a954-5d2987b498c7-image.png" alt="6403309f-a980-4b57-a954-5d2987b498c7-image.png" class=" img-fluid img-markdown" /></td>
<td><code>\'</code> <em>will</em> end the string</td>
</tr>
</tbody>
</table>
<h3>Steps to Reproduce</h3>
<ol start="0">
<li><code>escape.sql</code> created per above</li>
<li>Fresh portable unzip of v8.7 (or newer), delete <code>config.xml</code> , and open <code>escape.sql</code> ⇒ Rendering proves it defaults to treating <code>\</code> as escape</li>
<li>Check <strong>Settings &gt; Preferences &gt; Language &gt; Treat Backslash as escape character for SQL</strong> ⇒ is not checkmarked, even though the behavior obviously shows it is treating it as escape ⇒ this is the <strong>BUG</strong></li>
<li>Toggle the option on.</li>
<li><code>Ctrl+W</code> then <code>Ctrl+Shift+T</code> to reload/re-render the file ⇒ no change in rendering</li>
<li>Toggle the option off</li>
<li><code>Ctrl+W</code> then <code>Ctrl+Shift+T</code> to reload/re-render the file ⇒ now the rendering changes and matches the preference, so it is now treating <code>\</code> as normal character, like it should.</li>
<li>Exit Notepad++ (it should save the preference state)</li>
<li>Relaunch Notepad++ with the same file ⇒ now it has the right state when launched.</li>
<li>Turn the option back on.</li>
<li><code>Ctrl+W</code> then <code>Ctrl+Shift+T</code> to reload/re-render the file ⇒ the rendering changes and matches the preference to treat <code>\</code> as escape</li>
<li>Exit Notepad++ (it should save the preference state)</li>
<li>Relaunch Notepad++ with the same file ⇒ it’s treating <code>\</code> as escape</li>
<li>Check <strong>Settings &gt; Preferences &gt; Language &gt; Treat Backslash…</strong> and notice that like in step 2, it’s showing as unchecked, even though the preference state was saved as checked, and it’s behaving as if it’s checked</li>
</ol>
<h3>Expected Behavior (what worked in an older version)</h3>
<ol start="0">
<li><code>escape.sql</code> created per above</li>
<li>Fresh portable unzip of v8.6.9, delete <code>config.xml</code> , and open <code>escape.sql</code> ⇒ Defaults to treating <code>\</code> as escape</li>
<li>Check <strong>Settings &gt; Preferences &gt; Language &gt; Treat Backslash as escape character for SQL</strong> ⇒ it is checkmarked by default ⇒ this is the <strong>expected/good</strong> behavior</li>
<li>Toggle that option off</li>
<li><code>Ctrl+W</code> then <code>Ctrl+Shift+T</code> to reload/re-render the file</li>
<li>Now it’s treating <code>\</code> as normal character</li>
<li>With the option off, exit Notepad++, and restart Notepad++, opening the same file</li>
<li>This time, it renders <code>\</code> as normal character, and <strong>Settings &gt; Preferences &gt; Language &gt; Treat Backslash…</strong> is not checkmarked, as expected ⇒ this is the <strong>expected/good</strong> behavior</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/100182</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100182</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 04 Mar 2025 17:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Tue, 04 Mar 2025 15:33:49 GMT]]></title><description><![CDATA[<p dir="auto">Update:</p>
<p dir="auto">I looked at the <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/wiki/Changes#851" rel="nofollow ugc">Changes</a>, and it showed v8.5.1 as the most-recent change to SQL, so I tried the following experiment:</p>
<p dir="auto">If I go back to v8.5.0, when I toggle the option nothing happens, but if I restart, it keeps the state of the option, and the</p>
<p dir="auto"><img src="/assets/uploads/files/1741100026168-1a103976-f23e-4a42-bd40-fe7d5ab2f5d5-image.png" alt="1a103976-f23e-4a42-bd40-fe7d5ab2f5d5-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">vs</p>
<p dir="auto"><img src="/assets/uploads/files/1741100062025-1619716b-043d-4016-bfee-01faec332e34-image.png" alt="1619716b-043d-4016-bfee-01faec332e34-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">=====</p>
<p dir="auto">If I swap to v8.5.1, it works the same.  So it <em>wasn’t</em> the change in v8.5.1 that did it. :-(</p>
<p dir="auto">So trying to search for the version that changed the behavior:</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>version</th>
<th>behavior</th>
</tr>
</thead>
<tbody>
<tr>
<td>8.7.7</td>
<td>Ignores preference, always treats <code>\</code> as escape</td>
</tr>
<tr>
<td>8.5</td>
<td>Honors preference after restart</td>
</tr>
<tr>
<td>8.5.1</td>
<td>Honors preference after restart</td>
</tr>
<tr>
<td>8.6</td>
<td>Honors preference after restart</td>
</tr>
<tr>
<td>8.7</td>
<td>Ignores preference, always treats <code>\</code> as escape</td>
</tr>
<tr>
<td>8.6.5</td>
<td>Honors preference after restart</td>
</tr>
<tr>
<td>8.6.6</td>
<td>Honors preference after restart</td>
</tr>
<tr>
<td>8.6.7</td>
<td>Honors preference after restart</td>
</tr>
<tr>
<td>8.6.8</td>
<td>Honors preference after restart</td>
</tr>
<tr>
<td>8.6.9</td>
<td>Honors preference after restart</td>
</tr>
</tbody>
</table>
<p dir="auto">At this point, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> posted, so I retried v8.7 with toggling to <code>license.txt</code> and back to my SQL:  For v8.7, if I switch to another tab and back, it does start following the preference for that instance.  If I have the option off, so the “better one” is rendered as <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/34359">@Gary-Cunningham</a> wants it, and restart Notepad++, it continues to hold the preference; however, if i turn the option on, then exit, when I restart Notepad++, it does <em>not</em> show the preference being on, but it treats it as if it is: I then have to toggle on the option and back off, then switch to a new tab then back to the SQL, for it to treat the option as if it’s off, like it says.</p>
<p dir="auto">Going back to v8.6.9, if I toggle to a <code>new 1</code> tab and back between toggling the preference, I no longer need to restart Notepad++, but it’s annoying to have to toggle to a different tab (ie, force a re-render).</p>
<p dir="auto">But regardless of the toggle-to-different-tab or not, v8.6.9 annd v8.7.0 work differently when you first run Notepad++, depending on the state of that preference.  And v8.7.0 was when the Indentation preferences were split off to a different page from the Langauge preferences, so it may have been something to do with that split…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100178</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100178</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 04 Mar 2025 15:33:49 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Tue, 04 Mar 2025 17:02:03 GMT]]></title><description><![CDATA[<p dir="auto">I’m not sure about all the ins-and-outs of the SQL backslash stuff (as I don’t have a need), but I do notice that, when the setting in the <em>Preferences</em> is changed, if you’ve currently got a SQL tab selected, you have to switch to a different tab, then switch back to see something change.  This is definitely a problem in the N++ logic.</p>
<p dir="auto">EDIT:</p>
<p dir="auto">Here’s what I did:</p>
<ul>
<li>using Notepad++ 8.7.5</li>
<li>copied the text at the end of Peter’s <a href="https://community.notepad-plus-plus.org/post/100176">POST</a> into a new N++ tab</li>
<li>changed the “language” on the tab to <code>SQL</code> using the N++ status bar</li>
<li>opened <em>Preferences</em> and saw <em>Treat backslash…</em> was currently uncheckmarked</li>
</ul>
<p dir="auto">at this point I glanced back at the sql tab and saw this in N++ (which was unchanged from the moment I changed the language to sql):</p>
<p dir="auto"><img src="/assets/uploads/files/1741107448915-b2e3598d-a5b7-4f7b-8682-d338167691d4-image.png" alt="b2e3598d-a5b7-4f7b-8682-d338167691d4-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Then I:</p>
<ul>
<li>checkmarked the <em>Treat backslash…</em> checkbox</li>
<li>noticed no change in the contents of the active tab in N++ (still the sql tab)</li>
<li>made the active tab a different tab</li>
<li>made the sql tab active again</li>
</ul>
<p dir="auto">at this point I observed:</p>
<p dir="auto"><img src="/assets/uploads/files/1741107575706-110929bf-7511-4086-a721-b94e583ab80e-image.png" alt="110929bf-7511-4086-a721-b94e583ab80e-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/100177</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100177</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 04 Mar 2025 17:02:03 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Tue, 04 Mar 2025 15:03:27 GMT]]></title><description><![CDATA[<p dir="auto">I don’t think there’s a bug in Scintilla’s handling of it:</p>
<p dir="auto">In all these examples, SciTE has <code>sql.backslash.escapes=1</code> on the left; it has it <code>0</code> on the right:</p>
<ul>
<li>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24257">@mpheath</a>’s “SQLite”:<br />
<img src="/assets/uploads/files/1741098660810-aff1c166-1815-49c6-b4cd-208680b29e44-image.png" alt="aff1c166-1815-49c6-b4cd-208680b29e44-image.png" class=" img-fluid img-markdown" /></p>
</li>
<li>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24257">@mpheath</a>’s “PSQL”:<br />
<img src="/assets/uploads/files/1741098835537-0dbb43b6-6553-4447-bb0e-472a622f7893-image.png" alt="0dbb43b6-6553-4447-bb0e-472a622f7893-image.png" class=" img-fluid img-markdown" /></p>
<ul>
<li>this isn’t an interesting test, because the example text always has dual slashes, which means that you’d never see a difference between the option being on or off</li>
</ul>
</li>
<li>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/34359">@Gary-Cunningham</a>’s “better one”:<br />
<img src="/assets/uploads/files/1741098940947-94899650-35fc-4162-9527-b23d56cfb42b-image.png" alt="94899650-35fc-4162-9527-b23d56cfb42b-image.png" class=" img-fluid img-markdown" /></p>
</li>
</ul>
<p dir="auto">That proves that in SciTE (and thus Scintilla/Lexilla’s LexSQL code), the option is doing the right thing.  Thus, there is no bug to report to the Lexilla project.  Since it’s already been reported, I am sure the Lexilla team will promptly reject it as invalid.</p>
<p dir="auto">In Notepad++, if I toggle the option on the “better one” text, <em>nothing happens</em>!  It should be treating them differently.  So I thought maybe it required restarting Notepad++ (even though I didn’t think it used to require that): if I set that preference so it’s checkmarked, then exit Notepad++ and restart, the option goes back off.  This really looks like a bug in Notepad++'s usage of the LexSQL, not a bug in LexSQL</p>
<p dir="auto">I brought up PythonScript console, and even though Notepad++'s preferences show <code>Treat backslash as escape character for SQL</code> is off, getting the value of the property shows that Notepad++ has <em>actually</em> told Lexilla to always have that property on.<br />
<img src="/assets/uploads/files/1741099515125-28cdb699-18fb-468c-840c-e1fbce9da85c-image.png" alt="28cdb699-18fb-468c-840c-e1fbce9da85c-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And if I manually change that property using the plugin, the actual property and lexer do what I expect:<br />
<img src="/assets/uploads/files/1741099638981-22cb0bfd-4007-4484-94e1-3323da5b6918-image.png" alt="22cb0bfd-4007-4484-94e1-3323da5b6918-image.png" class=" img-fluid img-markdown" /><br />
vs<br />
<img src="/assets/uploads/files/1741099657489-3206033e-a691-4bc6-8084-d22f8a27edf7-image.png" alt="3206033e-a691-4bc6-8084-d22f8a27edf7-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thus, I am quite confident the bug is in Notepad++: it is not honoring its preference, and is instead always just setting the LexSQL property <code>sql.backslash.escapes=1</code> regardless of the property.</p>
<hr />
<p dir="auto"><em>addenda</em>: here is the text version of the  “better one” , for easy copy/paste</p>
<pre><code>select 'ABCDE' from dual where 1=1;
select 'AB\CDE' from dual where 1=1;
select 'ABCDE\' from dual where 1=1;
select 'ABCDE' from dual where 1=1;
select 'AB\CDE' from dual where 1=1;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/100176</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100176</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 04 Mar 2025 15:03:27 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Tue, 04 Mar 2025 11:20:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24257">@mpheath</a> Okay, bad example:</p>
<p dir="auto"><img src="/assets/uploads/files/1741087133791-86234c4c-f1eb-47dd-9a53-fbcab96650d3-image.png" alt="86234c4c-f1eb-47dd-9a53-fbcab96650d3-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This may be a better one.</p>
<p dir="auto">I have raised a bug as suggested by <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24325">@rdipardo</a><br />
Many thanks for all feedback</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100174</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100174</guid><dc:creator><![CDATA[Gary Cunningham]]></dc:creator><pubDate>Tue, 04 Mar 2025 11:20:58 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Tue, 04 Mar 2025 00:42:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/34359">@Gary-Cunningham</a></p>
<p dir="auto">In PLSQL with <code>'\'</code>, the <code>\</code> would be escaping the <code>'</code> string terminator so the <code>'</code> character becomes literal and the string styling continues past the <code>'</code> and terminates at the next instance of unescaped <code>'</code>.</p>
<p dir="auto">The SQL lexer is informing you that the syntax is not correct based on the styling shown.</p>
<p dir="auto">Differences in syntax:</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th></th>
<th>single backslash</th>
<th>double backslash</th>
<th>checkbox state</th>
</tr>
</thead>
<tbody>
<tr>
<td>PLSQL</td>
<td><code>'\\'</code></td>
<td><code>'\\\\'</code></td>
<td>checked</td>
</tr>
<tr>
<td>SQLite</td>
<td><code>'\'</code></td>
<td><code>'\\'</code></td>
<td>unchecked</td>
</tr>
</tbody>
</table>
<p dir="auto">A backslash in SQLite is not a special character though in PLSQL it is an <a href="https://docs.oracle.com/cd/A97630_01/text.920/a96518/cqspcl.htm#20741" rel="nofollow ugc">escape character</a> .</p>
<p dir="auto"><strong>PLSQL</strong>: Checkbox checked to style with <code>\</code> escape syntax. To escape a backslash is to double it.</p>
<pre><code>-- PLSQL syntax

-- ABC\\
select * from tablea
where col1 = 'ABC\\\\';

-- ABC\
select * from tablea
where col1 = 'ABC\\';

-- ABC
select * from tablea
where col1 = 'ABC';
</code></pre>
<p dir="auto"><strong>SQLite</strong>: Checkbox unchecked as <code>\</code> is a literal character in a string.</p>
<pre><code>-- SQLite syntax

-- ABC\\
select * from tablea
where col1 = 'ABC\\';

-- ABC\
select * from tablea
where col1 = 'ABC\';

-- ABC
select * from tablea
where col1 = 'ABC';

</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/100170</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100170</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Tue, 04 Mar 2025 00:42:07 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Tue, 04 Mar 2025 00:10:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/34359">@Gary-Cunningham</a></p>
<p dir="auto">Syntax highlighting comes from a third-party library; their bug tracker is at <a href="https://github.com/ScintillaOrg/lexilla/issues" rel="nofollow ugc">https://github.com/ScintillaOrg/lexilla/issues</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/100169</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100169</guid><dc:creator><![CDATA[rdipardo]]></dc:creator><pubDate>Tue, 04 Mar 2025 00:10:42 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Mon, 03 Mar 2025 07:53:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24325">@rdipardo</a></p>
<p dir="auto">Case can be easily replicated:</p>
<p dir="auto"><img src="/assets/uploads/files/1740988378117-f757afd0-636a-4c5a-93ba-e428d3016656-image.png" alt="f757afd0-636a-4c5a-93ba-e428d3016656-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/100153</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100153</guid><dc:creator><![CDATA[Gary Cunningham]]></dc:creator><pubDate>Mon, 03 Mar 2025 07:53:09 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Mon, 03 Mar 2025 07:45:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24325">@rdipardo</a> This code is PLSQL and is defined under S as sql:<br />
<img src="/assets/uploads/files/1740987895322-08f25ac5-e170-4aa5-8b37-ed20d4feba1c-image.png" alt="08f25ac5-e170-4aa5-8b37-ed20d4feba1c-image.png" class=" img-fluid img-markdown" /><br />
I think that the issue comes only for strings that terminate with a Backslash.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100152</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100152</guid><dc:creator><![CDATA[Gary Cunningham]]></dc:creator><pubDate>Mon, 03 Mar 2025 07:45:57 GMT</pubDate></item><item><title><![CDATA[Reply to sql language style issue with &#x5C;&quot; on Fri, 28 Feb 2025 15:37:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/34359">@Gary-Cunningham</a> said in <a href="/post/100107">sql language style issue with \"</a>:</p>
<blockquote>
<p dir="auto">Changing the Treat Backslash as escape character checkbox does not change this behaviour.</p>
</blockquote>
<p dir="auto">Since Notepad++ v8.5.1, there are <strong>2</strong> SQL lexers.</p>
<p dir="auto">The backslash option applies only to “SQL” (under <em>S</em> in the <em>Language</em> drop-down menu), which is intended for Oracle PL/SQL syntax, but may also be suitable for SQLite or MySQL. This is the default for files with the <code>*.sql</code> extension.</p>
<p dir="auto">If you are editing scripts for SQL Server, the best option is “Microsoft Transact-SQL” (under <em>M</em> in the <em>Language</em> drop-down menu.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100108</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100108</guid><dc:creator><![CDATA[rdipardo]]></dc:creator><pubDate>Fri, 28 Feb 2025 15:37:12 GMT</pubDate></item></channel></rss>