This is a note-tag that I enjoy using
<notetag>option1: value1option2: value2option3: value3</notetag>How would you parse this so that1. Options are optional
2. Values can span multiple lines
Examples
Perhaps additional characters should be added to the note-tag to enforce structure and to be able to distinguish between keys and values? Maybe just use hash notation and eval the whole thing as a hash and let ruby deal with the parsing?
<notetag>option1: value1option2: value2option3: value3</notetag>How would you parse this so that1. Options are optional
2. Values can span multiple lines
Examples
Code:
<notetag>name: himeclass: empressdescription: some really long descriptionthat spans multiple lines and should beparsed as one thing. New-lines should beinserted explicitly using \n in the tag</notetag>
Last edited by a moderator:

