Thanks,
Dan
--
Ticket URL: <http://www.midnight-commander.org/ticket/3293>
Midnight Commander <http://www.midnight-commander.org>
Midnight Development Center
Comment (by RoBe):
Hi,
i made a very simple YAML syntax highlighting. Just copy file yaml.syntax
into
{{{
/usr/share/mc/syntax
}}}
Then backup file:
{{{
/usr/share/mc/syntax/Syntax
}}}
and add to the end:
{{{
file ..\*\\.(yml|YML)$ YAML\sFile
include yaml.syntax
}}}
and than restart mc or use shortcut CTRL + S on opened YAML file (support
files *.yml or *.YML).
After that you can see result.png.
--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:1>
* owner: => andrew_b
* status: new => accepted
* milestone: Future Releases => 4.8.19
--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:2>
* status: accepted => testing
* votes: => committed-master
* resolution: => fixed
* branch_state: no branch => merged
Comment:
Applied as [055a8c6a4fa6840c8999d22038dc09f512bedee7].
Thanks!
--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:3>
* status: testing => closed
--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:4>
* status: closed => reopened
* resolution: fixed =>
Comment:
The current version is lacking. Here are some fixes/improvements. (I also
made it use the colors we usually use.)
(@Roman: Your name is in the commit history. I removed it from the file
itself. I'm sure you'll agree with me that it'd be unfair to those coming
after you and invest more time in this that they won't get credit.)
BTW, @Roman: what systems are using {{var}}? It won't hurt to document
this.
--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:5>
Comment (by zaytsev):
OH MY GOD, AWESOME!!!11 I'm writing a lot of YAML these days, and was
thinking to make a call to see if anyone can do a syntax for it.
@mooffie, "{{ var }}" is the Jinja2 (template system for Python) string
interpolation syntax. It has nothing to do with YAML per se, but, among
other things, YAML is used as a default playbook format for an
increasingly popular software configuration mangement system called
Ansible, which, incidentally, is written in Python and uses Jinja2 to
interpolate YAML strings. So, as such, I'd be happy if you could keep
anything "{{ .. }}" highlighted in a different color, such that it stands
out.
--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:6>
Comment (by zaytsev):
P.S. I wish someone could think of tackling Scala ;-) the first
approximation would be to just alias it to Java, but, of course, there is
much more to it...
--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:7>
* status: reopened => closed
* resolution: => fixed
Comment:
Applied as [54a0ccecaafff0af41990cff33453bfbb5c63eda].
Thanks!
--
Ticket URL: <http://www.midnight-commander.org/ticket/3293#comment:8>