Register | Sign In


Understanding through Discussion


EvC Forum active members: 57 (9175 total)
0 online now:
Newest Member: sirs
Post Volume: Total: 917,651 Year: 4,908/9,624 Month: 256/427 Week: 2/64 Day: 2/8 Hour: 0/0


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Author Topic:   How to Retain Leading Spaces?
Percy
Member
Posts: 22622
From: New Hampshire
Joined: 12-23-2000
Member Rating: 3.7


Message 14 of 15 (918511)
05-06-2024 6:47 PM


A Little Testing
<pre> has been disabled. It will no longer have any effect. Please use [code] instead. You'll have to do a hard reload to see [code] displayed properly as there is some new CSS. [code] uses the Menlo font, which is very similar to Courier New.
If you try to use <pre> it will be ignored, for example:
________________________________
/ \ ___________________
| Jawed Vertebrates | / \
| | | Jawless |
| (Bony Fish) | | Vertebrates |
| (Cartilaginous Fish) | | |
| ____________________________ | | |
| / \ | | |
| | Terrestrial Vertebrates | | | (Cyclostomes -- |
| | | | | e.g. Lampreys) |
| | (Amphibia) | | \___________________/
| | ________________________ | |
| | / \ | |
| | | Amniota | | |
| | | | | |
| | | (Reptiles) | | |
| | | | | |
| | | (Mammals) | | |
| | | | | |
| | \________________________/ | |
| \____________________________/ |
\________________________________/
But if you use [code] it will look like this:
          ________________________________
         /                                \        ___________________
         | Jawed Vertebrates              |       /                   \
         |                                |       |   Jawless         |
         |    (Bony Fish)                 |       |     Vertebrates   |
         |    (Cartilaginous Fish)        |       |                   |
         |  ____________________________  |       |                   |
         | /                            \ |       |                   |
         | | Terrestrial Vertebrates    | |       | (Cyclostomes --   |
         | |                            | |       |   e.g. Lampreys)  |
         | |  (Amphibia)                | |       \___________________/
         | |  ________________________  | |
         | | /                        \ | |
         | | | Amniota                | | |
         | | |                        | | |
         | | |   (Reptiles)           | | |
         | | |                        | | |
         | | |   (Mammals)            | | |
         | | |                        | | |
         | | \________________________/ | |
         | \____________________________/ |
         \________________________________/
With [code] you can use scrollbars. For instance, [code=10] displays only 10 lines of text with scrollbars:
          ________________________________
         /                                \        ___________________
         | Jawed Vertebrates              |       /                   \
         |                                |       |   Jawless         |
         |    (Bony Fish)                 |       |     Vertebrates   |
         |    (Cartilaginous Fish)        |       |                   |
         |  ____________________________  |       |                   |
         | /                            \ |       |                   |
         | | Terrestrial Vertebrates    | |       | (Cyclostomes --   |
         | |                            | |       |   e.g. Lampreys)  |
         | |  (Amphibia)                | |       \___________________/
         | |  ________________________  | |
         | | /                        \ | |
         | | | Amniota                | | |
         | | |                        | | |
         | | |   (Reptiles)           | | |
         | | |                        | | |
         | | |   (Mammals)            | | |
         | | |                        | | |
         | | \________________________/ | |
         | \____________________________/ |
         \________________________________/
You'll need to do a hard reload because there have been CSS changes. Please let me know if you have any questions or issues.

Replies to this message:
 Message 15 by Taq, posted 05-07-2024 10:44 AM Percy has not replied

  
Newer Topic | Older Topic
Jump to:


Copyright 2001-2023 by EvC Forum, All Rights Reserved

™ Version 4.2
Innovative software from Qwixotic © 2024