-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anymarkup does not support comments #5
Comments
Heh, so this is interesting. The biggest issue here is that a comment is actually a syntactic element in XML. There's no real syntax for INI files, but most INI parsers also recognize INI comments. It should be possible to provide comments serialization in XML and INI and ignore these in Yaml and JSON. I'd have to rewrite the INI parsing logic first to return I think this should also be an argument for API functions to explicitly say that I want/don't want to parse/serialize comments. Would that that sufficient for you? [1] http://yaml.org/spec/current.html#comment/information%20model |
@bkabrda +1 to your proposal. Would it be possible to read INI files with comments as well as write out comments? |
Yeah, absolutely. I'll try to get to this ASAP, but unfortunately I have no idea when that'll be. |
For formats where it's possible, we would like to be able to add comments to files generated by anymarkup.
See: projectatomic/atomicapp#178
The text was updated successfully, but these errors were encountered: