Hi,
  I have a problem and have been trying to find a solution. I have looked 
at the TW docs and searched around, but I cant figure this out. Now I dont 
pretend to be a expert which is why I am posting.

What I am trying to do:
I am creating some documented procedures in a "help" TW, that I have 
created/maintained, about managing fiber SAN switches and the CLI 
commands/output. I am trying to have different colored monospaced blocks 
for different devices to set them apart and to avoid confusion, i.e, green 
block for switch 1 and a blue block for switch 2,....
So I want to replicated the monospace block formatting buttons look but 
with different colors. I took this from the documentation and looking at 
the TW code and created a custom stylesheet:

.codeblock2 {
    display: block;
    word-break: normal;
    word-wrap: break-word;
    white-space: pre-wrap;
    padding: 14px;
    margin-top: 1em;
    margin-bottom: 1em;
    background-color: #e2efe8;
    border: 1px solid #92c2a8;
    padding: 0 3px 2px;
    border-radius: 3px;
    font-family: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,
monospace;
}

Which gives me basically everything I want except the line breaks are not 
preserved. So here is a comparison of the normal and mine:

```
CACL1::> net port show
  (network port show)

Node: CACL1-01
                                                  Speed(Mbps) Health
Port      IPspace      Broadcast Domain Link MTU  Admin/Oper  Status
```

@@.codeblock2
CACL5::> net port show
  (network port show)

Node: CACL5-01
                                                  Speed(Mbps) Health
Port      IPspace      Broadcast Domain Link MTU  Admin/Oper  Status
@@

Which looks like this:

[image: cap1.png]
So you see the green blocks line break breaks the "container". I am not 
sure how to remidy this. Any suggestions would greatly be appreciated.

Also, if there is an easier or more efficient solution, please elaborate. I 
would like to create several variations on the color scheme.

Thanks for any help.















-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3abd4e2b-d241-41c1-9360-f76ee43eb38f%40googlegroups.com.

Reply via email to