pyhocon icon indicating copy to clipboard operation
pyhocon copied to clipboard

Preserving comments during parsing

Open krishna-veerareddy opened this issue 4 years ago • 1 comments

Is there a way to preserve comments during parsing? I have a use-case where I need to load a config file, make amends to it and dump it back to disk without losing any pre-existing comments. Please let me know.

krishna-veerareddy avatar Mar 03 '20 20:03 krishna-veerareddy

I would be interesting to see this as well.

Like to create a config file, for each config add comment to certain section programly.

chesterxgchen avatar Aug 03 '23 00:08 chesterxgchen