| Line 12: |
Line 12: |
| | ==Example== | | ==Example== |
| | '''Table''' | | '''Table''' |
| − | {''#I'm a comment'' | + | {<span style="color:green">#I'm a comment</span> |
| − | '''Record''' SimpleValue | + | '''Record''' <span style="color:blue">SimpleValue</span> |
| − | '''Record2''' "Quoted string" ''#Quoted strings can span multiple lines'' | + | '''Record2''' <span style="color:blue">"Quoted string"</span> <span style="color:green">#Quoted strings can span multiple lines</span> |
| − | '''Record3''' 5.6 ''#This is a simple number value'' | + | '''Record3''' <span style="color:blue">5.6</span> <span style="color:green">#This is a simple number value</span> |
| − | '''Record4''' null ''#TyD recognizes null values'' | + | '''Record4''' <span style="color:blue">null</span> <span style="color:green">#TyD recognizes null values</span> |
| − | '''List''' [ very ; simple; list ] | + | '''List''' [ <span style="color:blue">very</span> ; <span style="color:blue">simple</span>; <span style="color:blue">list</span> ] |
| | '''List2''' | | '''List2''' |
| | [ | | [ |
| − | "Multi line" ''#Remember to escape quotes in a quoted string like this \"'' | + | <span style="color:blue">"Multi line"</span> <span style="color:green">#Remember to escape quotes in a quoted string like this \"</span> |
| − | "List" | + | <span style="color:blue">"List"</span> |
| − | ] ''#Lists can also have numbers'' | + | ] <span style="color:green">#Lists can also have numbers</span> |
| | '''ListOfTables''' | | '''ListOfTables''' |
| | [ | | [ |
| | { | | { |
| − | '''Record''' "This is an anonymous table, since elements in lists can't have names" | + | '''Record''' <span style="color:blue">"This is an anonymous table, since elements in lists can't have names"</span> |
| | } | | } |
| | { | | { |
| − | '''Record''' "Here's another table" | + | '''Record''' <span style="color:blue">"Here's another table"</span> |
| | } | | } |
| | ] | | ] |
| | '''SubTable''' | | '''SubTable''' |
| | { | | { |
| − | '''Record''' "I heard you like tables" | + | '''Record''' <span style="color:blue">"I heard you like tables"</span> |
| | } | | } |
| | } | | } |