[Geany] Yaml highlighting
elextr at xxxxx
Wed Aug 22 23:33:00 UTC 2012
On 23 August 2012 05:49, Mike Miller <geany-users at mgmiller.net> wrote:
> I'm editing a lot of yaml lately for host deployments and finding geany's
> support a bit lacking, even if my gripes are minor.
> The first issue is that inline comments are highlighted as a string and not
> comments, e.g.:
> - foo # very important option
> The whole second line is string color. Second, the dash is not recognized
> as an operator like the colon.
> I'm expecting the - to be colored as an operator, "foo" to be colored as a
> string, and everything after # to be colored as a comment. Notepad++ does
> the same, so I wonder if I am doing anything wrong? The yaml parser I'm
> using understands the syntax above, so why not the highlighter?
Because the highlighting isn't done by the yaml parser you are using.
The highlighting is done by the Scintilla editing component
(www.scintilla.org) that both Geany and Notepad++ use.
You need to file the problem there.
> Instead I'm putting comments on their own lines, but it isn't as intuitive
> an example for the recipient for specific comments. And I'd like the dash to
> be a different color as it seems to be part of the string.
> Geany mailing list
> Geany at uvena.de
More information about the Users