Releases: Carleslc/Simple-YAML
Releases · Carleslc/Simple-YAML
1.6
- Comments can now be retrieved via code (
getComment
).- Use
setComment
to add comments programmatically.
- Use
- Added a method to get a String representation of the file configuration including comments (
saveToStringWithComments
).YamlFile
now has atoString
method to get a String representation of the file configuration, with or without comments depending on the method used to load the file configuration (load
orloadWithComments
).
- Addition of comments take into account the path separator (
.
by default) and indentation (2 by default) set byYamlConfigurationOptions
. Edit those configurations with YamlFileoptions()
.
1.5
If you want to use comments you must use saveWithComments
instead of save
. In addition, when adding comments via code loadWithComments
should be used too instead of load
to preserve comments that may already exist.