tags:

views:

206

answers:

3

Does somebody know an installable on-line editor tool for YAML data structures, one that an end-user could use, preferably written in PHP?

No luck on the official yaml site.

Open Source would be nice; commercial is an option.

Clarification: What I need is a tool that shows each key/value pair of a YAML tree in a separate control to make it impossible for an end user to accidentally damage the file's data structure.

Update: Seeing as there seems to be nothing that readily comes to mind, I'm also interested if there is a Windows client that can do this.

+1  A: 

Have a look at AmyEditor which provides an embedded editor for external websites:

http://www.amyeditor.com/api/embed/test_eamy.html

jeromegamez
Mmm, this is interesting (got to keep it in mind!), but I would prefer something that can deal with yAML structures specifically and using separate controls for each field (to minimize the chance of errors made by the end-user.)
Pekka
+2  A: 

There is no existing tool with this feature set you can use out of the box. The only option I see is to use a Plugin of the Symfony-Framework. This plugin has a UI for editing key/value pairs

  1. Create a new Symfony-Project (For example YamlEditor)
  2. Install the Symfony-Plugin daYamlEditorPlugin
  3. Configure this plugin (see readme of the plugin) to use your YAML files.

Hope this helps

Timo
A: 

If your YAML structure isn't very complicated perhaps you could convert it to XML, and use an XML editor. You could then convert the XML back to YAML. I don't have much experience with XML editors but that may be an easier option than building one from scratch.

GWW