CSV to HTML translation: Difference between revisions
Content added Content deleted
(add language: Retro) |
m (→{{header|Retro}}: forgot to include the output) |
||
Line 2,338: | Line 2,338: | ||
: displayHTML ( $- ) |
: displayHTML ( $- ) |
||
clear |
|||
"<table>\n<tr><td>" puts |
"<table>\n<tr><td>" puts |
||
[ @ display ] ^types'STRING each@ |
[ @ display ] ^types'STRING each@ |
||
Line 2,344: | Line 2,343: | ||
CSV displayHTML</lang> |
CSV displayHTML</lang> |
||
Ouput: |
|||
<lang html5><table> |
|||
<tr><td>Character</td><td>Speech</td></tr> |
|||
<tr><td>The multitude</td><td>The messiah! Show us the messiah!</td></tr> |
|||
<tr><td>Brians mother</td><td><angry>Now you listen here! He's not the messiah; he's a very naughty boy! Now go away!</angry></td></tr> |
|||
<tr><td>The multitude</td><td>Who are you?</td></tr> |
|||
<tr><td>Brians mother</td><td>I'm his mother; that's who!</td></tr> |
|||
<tr><td>The multitude</td><td>Behold his mother! Behold his mother!</td></tr> |
|||
</table></lang> |
|||
=={{header|Ruby}}== |
=={{header|Ruby}}== |