CSV to HTML translation: Difference between revisions
Content added Content deleted
mNo edit summary |
m (→{{header|FutureBasic}}: Inserted code indents) |
||
Line 1,980: | Line 1,980: | ||
_window = 1 |
_window = 1 |
||
begin enum output 1 |
begin enum output 1 |
||
_webView |
_webView |
||
end enum |
end enum |
||
void local fn BuildWindow |
void local fn BuildWindow |
||
⚫ | |||
'~'1 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end fn |
end fn |
||
local fn CSV2HTML as CFStringRef |
local fn CSV2HTML as CFStringRef |
||
⚫ | |||
'~'1 |
|||
⚫ | |||
⚫ | |||
The multitude,The messiah! Show us the messiah!\n¬ |
|||
⚫ | |||
Brians mother,Now you listen here! He's not the messiah; he's a very naughty boy! Now go away!\n¬ |
|||
⚫ | |||
Brians mother,Now you listen here! He's not the messiah; he's a very naughty boy! Now go away!\n¬ |
|||
Brians mother,I'm his mother; that's who!\n¬ |
|||
⚫ | |||
The multitude,Behold his mother! Behold his mother!" |
|||
The multitude,Behold his mother! Behold his mother!" |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
MutableStringAppendString( htmlStr, @"< |
MutableStringAppendString( htmlStr, @"<tr bgcolor=wheat><th>Character</th><th>Speech</th></tr>" ) |
||
MutableStringAppendString( htmlStr, @"< |
MutableStringAppendString( htmlStr, @"<caption>From Monty Python's \"The Life of Brian\"</caption>\n" ) |
||
⚫ | |||
MutableStringAppendString( htmlStr, @"<caption>From Monty Python's \"The Life of Brian\"</caption>\n" ) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
MutableStringAppendString( htmlStr, @"< |
MutableStringAppendString( htmlStr, fn StringWithFormat( @"<td style=\"width:120px;\"><b>%@</b></td>>\n", tempArr[0] ) ) |
||
MutableStringAppendString( htmlStr, fn StringWithFormat( @"<td |
MutableStringAppendString( htmlStr, fn StringWithFormat( @"<td><i>%@</i></td>\n", tempArr[1] ) ) |
||
MutableStringAppendString( htmlStr, |
MutableStringAppendString( htmlStr, @"</tr>\n" ) |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end fn = fn StringWithString( htmlStr ) |
end fn = fn StringWithString( htmlStr ) |
||
local fn LoadHTML2WebView |
local fn LoadHTML2WebView |
||
⚫ | |||
'~'1 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
end fn |
end fn |
||
void local fn DoDialog( ev as long, tag as long, wnd as long, obj as CFTypeRef ) |
void local fn DoDialog( ev as long, tag as long, wnd as long, obj as CFTypeRef ) |
||
⚫ | |||
'~'1 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end fn |
end fn |
||
Line 2,042: | Line 2,038: | ||
{{output}} |
{{output}} |
||
[[File:CSV to HTML.png]] |
[[File:CSV to HTML.png]] |
||
=={{header|Go}}== |
=={{header|Go}}== |