[ via del.icio.us ] Scott Sweeney’s SLiP has been around since 2002, but I didn’t hear of it until recently.
element(attribute=value):
#comment
subelement:"text node"
anothersub:"""
Python-style 'here' doc.
"""
generates:
<element attribute=value>
<!--comment-->
<subelement>
text node
</subelement>
<anothersub>
Python-style 'here' doc.
</anothersub>
</element>
Like Markdown, you can use it as a BBEdit filter.
- Download and expand the archive file.
- Copy
sliplib.pyandsliptokenizer.pyinto/Library/Python/2.3. - Copy
slip2xml.pyinto~/Library/Application Support/BBEdit/Unix Support/Unix Filters.