Hi Wayne,
    I have found a way around this, tho it may not be the best
alternative, it
seems to work in all editors I tried :

<input type="hidden" value="<TMPL_VAR NAME="user">" name="user">

instead, use :

<input type="hidden" value="<!-- TMPL_VAR NAME=user -->" name="user">

This way, you eliminate the " inside the tag. Only warning : make sure
you put a
space between the NAME=user and the --> or H:T won't understand your
tag.

<!-- TMPL_IF NAME=test -->
<!-- /TMPL_IF -->

also works very well

Have a nice day !

Charles Martin
--------------------------------------------
Programmeur-analyste / analyst-programmer
imediaco inc.
--------------------------------------------
http://www.imediaco.com
[EMAIL PROTECTED]
819-376-4888

P.S. Sorry if you receive this twice, it doesn't seem to have gone
through in the first try...

Wayne Walker wrote:

> On Tue, May 28, 2002 at 08:55:32PM -0400, Cory Trese wrote:
> >
> > you can also use the alternate comment style syntax
> >
> > <!-- TMPL_VAR NAME="STUPID_VAR" -->
>
> This is helpful with some editors, but doesn't solve the big problem I

> have which is tag-in-a-tag.
>
> > Perhaps your editors will be able to make special exceptions for
this type
> > of comment
>
> The problem in most editors (old emacs, xemacs, and vim, and even new
> Quanta) is that they don't notice that the "inside tag" is there, so
> they close the "outside tag" on the right brace of the inside tag:
>
> <input type="hidden" value="<TMPL_VAR NAME="user">" name="user">
> closes here                                      *
> instead of here                                                *
>
> :(
>
> > The IDE I use (Komodo) supports HTML::Template tag-within-tags
reasonably
> > well, but it just robs an OSS project for it's text-editor widget
> > (Scintilla.)  Perhaps other Scintilla based syntax-highlighters
could offer
> > clues about how to manage this?
>
> Hmmmm.... will look into that, but so far I've only found 1 nice HTML
> editor (I want a smart text editor, not a visual mouse driven editor).

> And it doesn't seem to use Scintilla.
>
> > > 1. Does anyone have mode files or other tips, tricks or lisp to
get
> > > emacs/xemacs to behave well with HT?
> > >
> > > 2. Does anyone have syntax files or other tips or tricks to get
> > > emacs/xemacs to behave well with HT?
> > >
> > > 3. Does anyone use quanta and know how/if you get it to accept
> > > tag-in-a-tag?
> > >
> > > TIA,
> > > Wayne Walker
>
> --
>
> Wayne Walker
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to