Hi Ton

But text/css is not in the list of type to be selected. Mario said: Add it
> manually.
> But there is a Plain text (text/plain) entry in the type list which gives
> the same result.
>

I've added text/css for 5.0.8


> Both text/css and text/plain do show the styles in "readable" form.
>
> Is there a difference in types between text/css and text/plain?
>

At the moment they'll both be displayed the same, and the stylesheet
mechanism will render both the same. But text/css would be a clearer way to
mark intention.

Best wishes

Jeremy


> If there is no difference, change the type to "Plain text (text/css)" That
> will be less confusing.
>
> Cheers,
>
> Ton
>
>
> On Monday, January 27, 2014 10:42:58 PM UTC+1, Jeremy Ruston wrote:
>
>> 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]
>>
>


-- 
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.

Reply via email to