We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Textile plugin, and notextile support

Development and Programming

timkelty's avatar
timkelty
177 posts
17 years ago
timkelty's avatar timkelty

I can’t seem to get a straight answer or consistent results when trying to apply notextile to something.

I’ve seen some places say to wrap in ==this is not textilized==, or to use <notextile></notextile> or notextile. or textile..

Which one is right? notextile. and == seem to work but have been inconsistent. Currently, I’m trying to use it to stick some javascript right inside an entry. Any ideas?

Moderator’s note: Moved to the Plugin subforum.

       
timkelty's avatar
timkelty
177 posts
17 years ago
timkelty's avatar timkelty

Wrapping in == == and using notextile. before my script tag seems to give me syntax errors.

If I change my field type to none from textile, it works again.

       
timkelty's avatar
timkelty
177 posts
17 years ago
timkelty's avatar timkelty

Nobody?

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

Can you not just indent the line where your script is with a space? Textile ignores any line beginning with a space. Or you could try Leevi’s LG Replace plugin to insert the script line.

I have found == == to be inconsistent, too. Works in some cases, not in others.

       
timkelty's avatar
timkelty
177 posts
17 years ago
timkelty's avatar timkelty

The whitespace seems to do the trick. I’ve used Reeposition, but not LG Replace, I’ll check that out too.

Thanks, I appreciate it.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

Can you post some (stripped down if need be) code from your Textile field so we can see what you have going on?

Also, what version of the Textile Plugin and EE?

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

You might also try “notextile..” (the double dots being for multi-block)

notextile.. < script type="text/javascript">
 var FO = {movie:"/flv/flvplayer.swf",width:"500",height:"400",majorversion:"7",build:"0",
bgcolor:"#FFFFFF",allowfullscreen:"true",flashvars:"file=http://site.com/movie.flv&image=http://site.com/pic.jpg" };
 UFO.create(FO, "movie");
</ script>

p. blah blah blah...

Then whatever your next element is (if you have one) would have to be explicitly declared (like “p.” for a paragraph) so that Textile knows to start parsing again.

“notextile.” is actually the preferred method to use over “<notextile>”. Everything I mentioned here is documented at Threshold State’s Textile Reference Manual.

Textile can’t always identify the beginning and end of long or complex blocks of XHTML. To prevent Textile from enclosing complex XHTML blocks in paragraph tags, either use a space at the beginning of each line or a notexile.. extended block. This syntax (referring to <pre>, <code>, and <notextile>) is supported for backwards compatibility only, and doesn’t always work as expected. The block modifiers pre., bc. and notextile. should be used instead.
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.