[Lazarus] Why was XML format chosen for storing settings in Lazarus IDE?

Alexander Klenin klenin at gmail.com
Fri Jun 18 14:07:34 CEST 2010


On Fri, Jun 18, 2010 at 22:51, Marco van de Voort <marcov at stack.nl> wrote:
> I actually tried to implement this once by using [[[section]]] and
> [[[subsubsection]].

I did that recently for one of my projects,
but using [.subsection] [..subsection] [...subsubsection] instead.

> There were two main problems:
> - copy and paste between levels didn't work.

And that is not necessarily bad thing, especially in config files
pasting content in a different nesting level is usually an error.

> - you get a bit of a dangling else problem because you don't have
>    closing delimiters.

I solved that by using [section.subsection.subsubsection] syntax,
with leading names optional, and replaced by previous values when omitted.

-- 
Alexander S. Klenin




More information about the Lazarus mailing list