Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-06-30 13:37:56

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,626
GitHub Twitter

[textile] Display arobase sign (@) within code statement formated by Textile

Hi.

I’m currently writing an article with Textile. I’ve got a block of code formated within some arobase signs. Now inside this block of code, I’ld like to insert an arobase sign @ (my code need one). Textile breaks my block of code as soon as it’s find this sign.

Do you have a solution?

Tks by advance.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#2 2011-06-30 15:11:14

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

Re: [textile] Display arobase sign (@) within code statement formated by Textile

You could use bc., a block code:

var i_am = "code"; // @mybelly

Or you could escape the inner character with ==text==:

return @$cake;

Offline

#3 2011-06-30 16:59:42

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,626
GitHub Twitter

Re: [textile] Display arobase sign (@) within code statement formated by Textile

Hi Jukka.

Are you a Textile Guru?

Do’ve already thanks for your plugins too?


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#4 2011-06-30 17:16:38

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

Re: [textile] Display arobase sign (@) within code statement formated by Textile

Pat64 wrote:

Are you a Textile Guru?

Sometimes I discover new things about Textile I didn’t know about or had forgotten about. Personally, I don’t even remember the table syntax, and have to refer the docs when using tables.

Do’ve already thanks for your plugins too?

:)

Offline

Board footer

Powered by FluxBB