<?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[Yaml double quotes]]></title><description><![CDATA[<p dir="auto">I’m a bit confused as to why Yaml doesn’t seem to properly highlight text. I want my strings (in double quotes) to have a different color, like in other languages. Notepad ++ doesn’t seem to detect the double quotes in Yaml properly. It has styling configuration for both “TEXT” and “STRING”. It seems to consider the colon separating values as “STRING” (when changing the color of STRING it only changes the colons) but it doesn’t care about the colors I set for “TEXT”.</p>
<p dir="auto">Example YAML:</p>
<p dir="auto">Test:<br />
value: “some text”<br />
another: noString</p>
<p dir="auto">In the above, the colon will have the new color, but the “some text” has the same color as noString. I want them to have different colors :)</p>
<p dir="auto">Ideas? :). I tried hacking langs.xml and stylers.xml to no avail…</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16712/yaml-double-quotes</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 18:34:08 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16712.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Nov 2018 00:11:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Yaml double quotes on Sat, 01 Dec 2018 00:19:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> G’dam’ m’man! That’s a niiiiice find. Thank thee! :D. Much obliged’n’all :). And if you wonder why I wrote “G’dam’ m’man!” that way, just listen to <a href="https://open.spotify.com/track/1jGvgQkqQtNVj725vg26Ft" rel="nofollow ugc">https://open.spotify.com/track/1jGvgQkqQtNVj725vg26Ft</a> (it’s an anti-racist song :) ).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/37041</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/37041</guid><dc:creator><![CDATA[Axonn Echysttas]]></dc:creator><pubDate>Sat, 01 Dec 2018 00:19:44 GMT</pubDate></item><item><title><![CDATA[Reply to Yaml double quotes on Thu, 29 Nov 2018 10:45:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/axonn-echysttas" aria-label="Profile: axonn-echysttas">@<bdi>axonn-echysttas</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterJones">@<bdi>peterJones</bdi></a>, and <strong>All</strong>,</p>
<p dir="auto">From what I read, here :</p>
<p dir="auto"><a href="http://yaml.org/spec/1.2/spec.html#id2760844" rel="nofollow ugc">http://yaml.org/spec/1.2/spec.html#id2760844</a></p>
<p dir="auto"><strong>Text</strong> styling seems to work inside the <strong>block</strong> notations, beginning with the <strong><code>|</code></strong> or the <strong><code>&gt;</code></strong> symbols</p>
<p dir="auto">Here is, below, some blocks of <strong>random <code>YAML</code></strong> code, ( <strong>without</strong> any coherence ! ) just to see the <strong>color</strong> effects of some structures !</p>
<p dir="auto">Put that text in a <strong>new</strong> tab and choose the <strong><code>YAML</code></strong> language</p>
<pre><code class="language-z">#---------------------------------------------
string: '012345'
date: 2002-12-14
boolean: true
%TAG ! tag:clarkevans.com,2002:
--- !shape
  # Use the ! handle for presenting
  # tag:clarkevans.com,2002:circle
- !circle
  center: &amp;ORIGIN {x: 73, y: 129}
  radius: 7
- !line
  start: *ORIGIN
  finish: { x: 89, y: 102 }
- !label
  start: *ORIGIN
  color: 0xFFEEBB
  text: Pretty vector drawing.
literal_block: |
    All line-break
        are significant
folded block: &gt;
    each line break is folded to a space
        unless it ends an empty or a more-indented line. 
#---------------------------------------------
%TAG ! tag:clarkevans.com,2002:
--- !shape
  # Use the ! handle for presenting
  # tag:clarkevans.com,2002:circle
- !circle
  center: &amp;ORIGIN {x: 73, y: 129}
  radius: 7
- !line
  start: *ORIGIN
  finish: { x: 89, y: 102 }
- !label
  start: *ORIGIN
  color: 0xFFEEBB
  text: Pretty vector drawing.
#---------------------------------------------
--- !&lt;tag:clarkevans.com,2002:invoice&gt;
invoice: 34843
date   : 2001-01-23
bill-to: &amp;id001
    given  : Chris
    family : Dumars
    address:
        lines: |
            458 Walkman Dr.
            Suite #292
        city    : Royal Oak
        state   : MI
        postal  : 48046
ship-to: *id001
product:
    - sku         : BL394D
      quantity    : 4
      description : Basketball
      price       : 450.00
    - sku         : BL4438H
      quantity    : 1
      description : Super Hoop
      price       : 2392.00
tax  : 251.42
total: 4443.52
comments:
    Late afternoon is best.
    Backup contact is Nancy
    Billsmer @ 338-4338.
#---------------------------------------------
---
Time: 2001-11-23 15:01:42 -5
User: ed
Warning:
  This is an error message
  for the log file
---
Time: 2001-11-23 15:02:31 -5
User: ed
Warning:
  A slightly different error
  message.
---
Date: 2001-11-23 15:03:17 -5
User: ed
Fatal:
  Unknown variable "bar"
Stack:
  - file: TopClass.py
    line: 23
    code: |
      x = MoreObject("345\n")
  - file: MoreClass.py
    line: 58
    code: |-
      foo = bar
#---------------------------------------------
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36925</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36925</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 29 Nov 2018 10:45:33 GMT</pubDate></item><item><title><![CDATA[Reply to Yaml double quotes on Thu, 29 Nov 2018 07:57:12 GMT]]></title><description><![CDATA[<p dir="auto">Using Notepad 7.5.9. Ok, so it’s not just me but some sort of lack of functionality. Does NPP have a place where I should report bugs? I’d rather do it here than go to the Scintilla project. Maybe the developers involved in NPP know something more :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36916</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36916</guid><dc:creator><![CDATA[Axonn Echysttas]]></dc:creator><pubDate>Thu, 29 Nov 2018 07:57:12 GMT</pubDate></item><item><title><![CDATA[Reply to Yaml double quotes on Thu, 29 Nov 2018 02:26:58 GMT]]></title><description><![CDATA[<p dir="auto">Running a quick experiment where I use Style Configurator to change the format of each style category “live” (I toggled underlining on each category, and was able to see some – like the DEFAULT and IDENTIFIER – change as I toggled it).  Based on those experiments, it appears that <code>"some text"</code> and <code>noString</code> are both considered “DEFAULT”.  I see the “TEXT” configuration, but not the “STRING” – which version of Notepad++ are you using?</p>
<p dir="auto">The list of categories shown in the “style” column of the Configurator, and how they are parsed/lexed, are defined by the lexer (in this case, the YAML lexer), which Notepad++ inherits from Scintilla (the underlying editing component that Notepad++ uses).  I tried looking through NPP’s copy of the <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/ef13902206f80e00dcfd7d85b342066ed6f86d66/scintilla/lexers/LexYAML.cxx" rel="nofollow ugc">Scintilla YAML lexer source code</a> – but I don’t know enough about lexer code to fully follow, and I’m not immediately seeing how it defines the beginning/end of “TEXT”.  It seems to have something to do with whether indenting has changed… but I’m not sure exactly how, and I couldn’t get any pseudo-YAML text I entered to be interpreted as “TEXT”.  But it doesn’t seem that “TEXT” means “something in double quotes”.  Maybe “STRING” does (but I don’t see it in my Style Configurator, nor in the NPP LexYAML source code, so I don’t know…)</p>
<p dir="auto">If you wanted to ask for a change in the lexer, such that it had a “STRING” or similar “QUOTED” category, you’d have to go to the <a href="https://sourceforge.net/projects/scintilla/" rel="nofollow ugc">Scintilla project</a>, and make an <a href="https://sourceforge.net/p/scintilla/feature-requests/" rel="nofollow ugc">issue</a> there – after verifying that such an issue doesn’t exist, and after verifying that the most recent Scintilla doesn’t already have it.  (It’s quite possible it does: Notepad++ doesn’t upgrade its Scintilla version very often – 3.56 appears to be the version NPP uses, since mid-2015.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36915</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36915</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 29 Nov 2018 02:26:58 GMT</pubDate></item></channel></rss>