MML Tags ... Re: [ic] Can you edit templates with a WYSIWYG editor?
Wed, 4 Apr 2001 12:38:03 -0400
Quoting Ed LaFrance (firstname.lastname@example.org):
> At 10:48 AM 04/04/2001 -0400, you wrote:
> >Quoting Young Family (email@example.com):
> > > > but It'll be much more complicated as no
> > > > program can understand/parse
> > > > the IC MML tags yet.
> > >
> > > This is a feature that may be very useful for a new release of Interchange,
> > > the ability to use alternate tag syntax.
> > >
> > > For example in PHP the normal tags are <?PHP Your php code here <?>. This
> > > makes it impossible to edit PHP pages using Front Page.
> > >
> > > BUT... PHP has an option called 'USE_ASP_TAGS=YES' where I can use the
> > > alternative syntax <% your php code here %> which makes Front Page think it
> > > is dealing with an ASP page. I can now happily use FrontPage and/or other
> > > ASP-friendly editors, and not have the editor kill my code. I still must
> > > call the page mypage.php using the php suffix in order to get Apache to
> > > invoke the PHP scripting language.
> >Actually, you can use <!--[tag ...]--> and it will work.
> ...but that won't help if the tag produces output that needs to be rendered
> in the browser. I guess one thing you could do is flag your HTML comments:
> <!--IML [tag ...] IML-->
> Then you could strip them out later with some command-line perl:
> perl -i -p -e 's/<!--IML//g' *.html
> perl -i -p -e 's/IML-->//g' *.html
No, only the tag itself is supposed to be put that way, and it must
be surrounding just the tag with precisely <!--[tag param=value param=value]-->
Try this for both a matching and non-matching search string:
Presumably it should work out both for editing and display. FrontPage,
though, is notorious for relocating comments so it might not. DreamWeaver
allows you to surround such an area with <NOTOUCH> </NOTOUCH>, which
prevents the comments from being munged and relocated, and I heard a rumor
FrontPage had something equivalent.
Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <firstname.lastname@example.org>
Fast, reliable, cheap. Pick two and we'll talk. -- unknown