Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-06-13 07:40:58

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

Re: TagCommenting

I use always this :
<txp:php>// (... some comments here ...) </txp:php>
I think it’s not important to have a special tag for comments within code lines.


Patrick.

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

Offline

#14 2007-06-13 18:35:16

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: TagCommenting

I also use this Pat, but frankly I find that to be a lot less readable/recognizable than /* */ or // in other languages.

Offline

#15 2007-06-15 15:33:52

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: TagCommenting

For your viewing pleasure, starring in our next sequel Textpattern 4.0.5: <txp:nop>

In computer science NOP or NOOP (short for No OPeration) is an assembly language instruction, sequence of programming language statements, or computer protocol command that does nothing at all (besides wasting cpu clock cycles).

Source: Wikipedia

Offline

#16 2007-06-15 19:17:52

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Re: TagCommenting

Hmm.. Nice. I already started using it.

And already I’m asking for more! Could it return tag content wrapped with <!-- --> while testing/debugging?

I often place lines like “<!— form: yada_yada —>” at the form’s start. That way I can follow the parsing in the markup.. Something like <txp:form_name /> might fun too..

Ah, perhaps we’ll see those in 4.0.6 (:


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

#17 2007-06-15 20:08:26

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

Re: TagCommenting

Fantastic wet!
I think Jérémie hoped to have a more simple, efficient and very short comment tag. Perhaps in the same idea of @ sign in Textile language…

When do you think we’ll can play with four ho five version?

Regards,


Patrick.

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

Offline

#18 2007-06-15 20:13:13

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: TagCommenting

Now: svn co http://svn.textpattern.com/development/4.0 (This is not the final version, of course. But it’s ready for play. Do NOT use in a production environment.)

Offline

#19 2007-06-15 20:32:43

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

Re: TagCommenting

Er Oops I still use it… Even in production site…

Er I think I’m too addict of TXP.

Last edited by Pat64 (2007-06-15 20:34:11)


Patrick.

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

Offline

#20 2007-06-15 21:10:55

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

Re: TagCommenting

Changed to <txp:hide>, which is easier to understand and remember without reading the manual and because it does the same thing as the anc_hide plugin that many people used up till now for this purpose.

Offline

#21 2007-06-15 22:07:39

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: TagCommenting

Pat64 wrote:

I think Jérémie hoped to have a more simple, efficient and very short comment tag. Perhaps in the same idea of @ sign in Textile language…

Indeed. But this one is a good pair commenting, and having it into core make one less “must have” plugin to install which is always good.

For the line comment, we’ll see later. One feature at a time :) And mostly, because no one (including me) had a brilliant idea about what the commenting delimiter string should be.

Offline

Board footer

Powered by FluxBB