<?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[Escape backslash quotes in string in user defined language]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
I try to write a user defined language for Groovy (in fact just an improvement of one found on the web).</p>
<p dir="auto">Groovy’ strings delimiter can be either ’ (single quote) or " (double).<br />
You can escape a single quote within a string delimited by single quotes.</p>
<p dir="auto">For example, you can have : ‘blah blah' blah blah’.<br />
My problem is that the escaped quotes ' is always detected as end of the string.<br />
So the last single quote is interpreted as the start of a new string which imply the highlighting is wrong for the reste of the file.</p>
<p dir="auto">Is there any way in a user defined language to exclude ' as string delimiter when ’ is a string delimiter ?</p>
<p dir="auto">Thank you in adance for your help</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/10577/escape-backslash-quotes-in-string-in-user-defined-language</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 09:54:19 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/10577.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Sep 2015 10:06:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Escape backslash quotes in string in user defined language on Fri, 25 Sep 2015 16:30:30 GMT]]></title><description><![CDATA[<p dir="auto">In the UDL dialog, click the “Operators and Delimiters” tab. Under the caption “Delimiter 1” add the double quotation mark " as both “Open” and “Close”, the backslash as “Escape”. Same for the single quotation mark under “Delimiter 2”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11499</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11499</guid><dc:creator><![CDATA[Jan Schreiber]]></dc:creator><pubDate>Fri, 25 Sep 2015 16:30:30 GMT</pubDate></item></channel></rss>