Pre versus Pre Code
|
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):
|
|
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?):
|
|
Still look alike…? |
|
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. |
|
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. |
|
Yes it is. |