Hello all,
How are you? New user here and already in trouble...
I want to create a second (additional) pre custom style based on the 
default pre style that comes with tiddlywiki.
This is the code i have for the custom style based on the default one (i 
only have changed the background-colour value for now):

pre .altstyle {
display: block;
padding: 14px;
margin-top: 1em;
margin-bottom: 1em;
word-break: normal;
word-wrap: break-word;
white-space: pre-wrap;
background-color: #DAFFD5;
border: 1px solid #cccccc;
padding: 0 3px 2px;
border-radius: 3px;
font-family: Monaco, Consolas, "Lucida Console", "DejaVu Sans Mono", 
monospace;
}

The problem is how do i apply it to a code block?
This is the code i'm using inside the tiddler:

@@.altstyle
```
Lorem Ipsum is simply dummy text of the printing and typesetting industry. 
Lorem Ipsum has been the industry's standard dummy text ever since the 
1500s, when an unknown printer took a galley of type and scrambled it to 
make a type specimen book. It has survived not only five centuries, but 
also the leap into electronic typesetting, remaining essentially unchanged. 
It was popularised in the 1960s with the release of Letraset sheets 
containing Lorem Ipsum passages, and more recently with desktop publishing 
software like Aldus PageMaker including versions of Lorem Ipsum.
```
@@

I've spent quite a few hours trying other ways but can't get this to work :(

Thanks you for any help(hints you can suggest,
Best regards,
webcorerad

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0be5b427-222d-44d5-aecc-ef95dc1afd97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to