[tw] Re: TW5 How to save code? TW5

2015-08-13 Thread Jørn Madsen
Den onsdag den 12. august 2015 kl. 17.49.17 UTC+2 skrev Jørn Madsen: Hi Mario Thanks,- I've tried that,- but it did not "freeze" the text. But now I have imported HighLight and uses the text conversion,- so far this seems to work perfectly. Also for very large configurations with hundreds of

[tw] Re: TW5 How to save code? TW5

2015-08-12 Thread PMario
Hi Jørn , try this ``` def factorial(n): result = n for i in range(1,n): result *= i return result ``` see: http://tiddlywiki.com/#Code%20Blocks%20in%20WikiText -mario -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To

[tw] Re: TW5 How to save code? TW5

2015-08-12 Thread Jørn Madsen
Den onsdag den 12. august 2015 kl. 17.49.17 UTC+2 skrev Jørn Madsen: > > Hi > > I've been using TW5 for a year now, mostly for notes concerning Network > configuration and Python programming. > > I haven't been able to find a workaround to save code I can save directly. > A simple example: > >

[tw] Re: TW5 How to save code? TW5

2015-08-12 Thread Greg Davis
As Andreas said, you could change the tiddler type. Though if you are adding descriptions or annotating, your short example seems to work with the back-ticks. Did you try HTML pre or code tags? Test sample attached. Greg -- You received this message because you are subscribed to the Google Gro

[tw] Re: TW5 How to save code? TW5

2015-08-12 Thread Jørn Madsen
Den onsdag den 12. august 2015 kl. 17.49.17 UTC+2 skrev Jørn Madsen: > > Hi > > I've been using TW5 for a year now, mostly for notes concerning Network > configuration and Python programming. > > I haven't been able to find a workaround to save code I can save directly. > A simple example: > >