Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-05 21:29:42

codylindley
Member
From: Boise, Idaho
Registered: 2004-06-09
Posts: 29
Website

[textile] Escaping Textile

How do I escape Textile for multiple lines with line breaks? For example this does not work.

<script>

//test code

var name = me;

</script>

or this

==
<script>

//test code

var name = me;

</script>
==

Last edited by codylindley (2007-09-05 21:46:07)


codylindley.com

Offline

#2 2007-09-05 21:35:55

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [textile] Escaping Textile

With notextile.. (with double dots) and use manual-paragraph for break, like:

notextile.. <script>

//test code

var name = me;

</script>

p. Your output with textile here...

Cheers!

Offline

#3 2007-09-05 21:45:43

codylindley
Member
From: Boise, Idaho
Registered: 2004-06-09
Posts: 29
Website

Re: [textile] Escaping Textile

ok, this works but it removes spaces (line breaks, empty lines) from my js code. Any ideas why?

Last edited by codylindley (2007-09-05 21:46:41)


codylindley.com

Offline

#4 2007-09-06 04:51:56

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [textile] Escaping Textile

Yep, so it does at the code-output, but not in the insert, so it has no effect to anything. It’s because Textile just does that.

Cheers!

Offline

#5 2007-09-06 09:20:26

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [textile] Escaping Textile

Cody, you can report that as a bug on this website

Offline

Board footer

Powered by FluxBB