Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
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
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