01-28-2009, 07:27 AM
I wish the copy for QM forum posts would look like this!
Just setting the color to white to match the background in the code box for "||||" to show a tab and "|" to show a space.
Looks right in all the view options for the forum using Firefox on XP...
Figure could parse the data in QM when pasting...maybe every past too, that way you wouldn't have to use the correct pasted code that pops up in the output section. I've never seen any reason to start code with "|" could be any character though...crazy ones that you would never start a line of code with. QM would findreplace tab with four characters to space in the monospaced [ code] bbCode tag.
|It would be really neat if QM forum posts could looks exactly like they do in the editor...
out
int i=2
sel i
||||case [1,3,5,7,9]
||||out("%i is Odd" i)
||||case [2,4,6,8]
||||out("%i is Even" i)
||||case [0]
||||out "The number is Zero"
sel i
||||case [0,2,1,3,5,7,9]
||||if i<9
||||||||out "Don't for get that's a prime number too!"
Just setting the color to white to match the background in the code box for "||||" to show a tab and "|" to show a space.
Looks right in all the view options for the forum using Firefox on XP...
Figure could parse the data in QM when pasting...maybe every past too, that way you wouldn't have to use the correct pasted code that pops up in the output section. I've never seen any reason to start code with "|" could be any character though...crazy ones that you would never start a line of code with. QM would findreplace tab with four characters to space in the monospaced [ code] bbCode tag.