Hi Ton > > Is it allowed to use <pre>...</pre> around the styles in the stylesheet > while using txt/css as type? >
No, you can't insert <pre> within the text of text/css tiddlers because the text within the tiddler is not subject to wiki processing. But the entire tiddler will be displayed in <pre> tags anyhow, because it's a text tiddler. Best wishes Jeremy. > > Cheers, > > Ton > > > On Monday, January 27, 2014 9:47:01 PM UTC+1, Ton Gerner wrote: >> >> Hi Jeremy, >> >> On Monday, January 27, 2014 8:49:32 PM UTC+1, Jeremy Ruston wrote: >>> >>> You should only store stylesheets as text/css if they don't contain any >>> TW5 macros or transclusions. If you use transclusions and macros (like the >>> stylesheets in the core themes), then it is perfectly OK to use triple >>> backticks to mark sections that you want to exclude from wikification. >>> >> >> OK, I didn't know and had no problems with triple backticks. >> >> Anyhow, it looks far better with triple backticks (more readable) than >> when I change it to txt/css, see atttachments (in edit mode it looks fine). >> >> Is there another possibility to show it like code shows? >> >> If it is needed to change to txt/css it will be handy if: >> >> 1) txt/css is in the list of types >> 2) there is a note in the documentation (searching for stylesheet gives >> only something about the tag $:/tags/stylesheet) >> >> Cheers, >> >> Ton >> >> >>> >>> Best wishes >>> >>> Jeremy >>> >>> >>> On Mon, Jan 27, 2014 at 7:44 PM, Ton Gerner <[email protected]> wrote: >>> >>>> Hi Mario, >>>> >>>> Thanks for the comments. >>>> I had not thought about the text/css type. >>>> The !important is a left-over from old days (alpha10 or so). I'll look >>>> into that. >>>> >>>> Cheers, >>>> >>>> Ton >>>> >>>> >>>> On Monday, January 27, 2014 8:12:54 PM UTC+1, PMario wrote: >>>>> >>>>> On Monday, January 27, 2014 3:41:06 PM UTC+1, Ton Gerner wrote: >>>>>> >>>>>> That means I am still using all CSS styles in my stylesheets within >>>>>> 'triple backticks' without any problem. >>>>>> The stylesheet you mention is used in my guide about a top menu and >>>>>> toolbars [2]. >>>>>> >>>>> >>>>> Hi Ton, >>>>> If you want to display the stylesheet tiddler as text, just use >>>>> >>>>> type: *text*/ >>>>> *css * >>>>> You may need to type it by hand, since the dropdown doesn't know it. >>>>> >>>>> So you don't need to use "non CSS markup in your tiddler". It may fail >>>>> with weired errors in the future. Such errors are very hard to track down, >>>>> after 1 year or 2 :/ >>>>> >>>>> There is a second thing I just saw in the style sheets. If !important >>>>> is really needed, then imo the base theme concept is broken because >>>>> !important is viral. So everyone else that want's to modify your theme, >>>>> will need important keyword too. So if there are 2 more iterations you'll >>>>> end up having !important all over the places. .... I'll need to >>>>> investigate, to be sure. >>>>> >>>>> -mario >>>>> >>>> >>> >>> >>> -- >>> Jeremy Ruston >>> mailto:[email protected] >>> >> -- Jeremy Ruston mailto:[email protected] -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.

