Pre versus Pre Code
Rick Murray (539) 13840 posts |
I wonder if there’s a difference? This is just pre tags: This Is Some Text. And here is the pie core version (“pre code” but swipe-type wasn’t having that):
|
Rick Murray (539) 13840 posts |
Looks the same. Let’s try a longer example. Pee (thank you swipe-type): 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 And now pure coffee (wtf swipe-type, are you trolling me?):
|
Rick Murray (539) 13840 posts |
Still look alike…? |
David J. Ruck (33) 1635 posts |
Pre:- class Pool: Pre Code:-
Pre on it’s own double spaces the first block, both pre and pre+code fail to display the indent and blanks lines on the methods, so pretty naff for Python. BTW The code is part of a fake multitasking module for RISC OS python, to allow multitasking code to run in a single task. |
Chris Mahoney (1684) 2165 posts |
Textile aside, I don’t think <code> is supposed to do anything visually when inside <pre>; it’s used for semantics. For example, on our “knowledge base” at work, it causes the code to get syntax highlighting via some JavaScript that hooks into it. |
David Boddie (1934) 222 posts |
Yes it is. |