Discussion:
Markup Tools Configuration Issue
Carlton Gibson
2008-03-31 08:42:49 UTC
Permalink
Hi all,

I have a slight workflow inhibitor with BBEdit and I'm hoping maybe
someone knows the way round it... :-)

Using the HTML Markup tools, I would like to be able to inset PHP
fragments as, for example, attribute values.

Thus when creating a form element I might enter the following in the
action field:

<?php echo $this->action; ?>

My expected/hoped for output would be this:

<form action="<?php echo $this->action; ?>" method="post">

</form>

However, BBEdit is escaping the value so Actual Output is:

<form action="%3C?php%20echo%20$this-%3Eaction;%20?%3E" method="post">

</form>

Can any body tell me if there is a way around this behaviour (I can't
find any way to turn it off in the manual...)

Thanks in advance.
Regards,
Carlton
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Charlie Garrison
2008-03-31 18:36:16 UTC
Permalink
Good morning,

On 31/3/08 at 9:42 AM +0100, Carlton Gibson
Post by Carlton Gibson
Can any body tell me if there is a way around this behaviour (I
can't find any way to turn it off in the manual...)
Create the form tags with a dummy action, eg. 'abc', then change
it in the html file to what you really want. It's a couple of
extra steps, but still easy to do.

When creating tags, the behaviour doesn't bother me at all since
it's so easy to edit the tag attributes after closing the tag
maker dialog. What does make things more difficult though is
editing an existing tag with tag maker, since it will encode my
carefully crafted template constructs.

I'm not sure how else it could be handled though. I certainly do
want the encoding to work as it currently does for the majority
of tags. How would I specify whether to encode attributes for
each invocation of tag maker. Hmmm, maybe the tag maker dialog
could have a 'don't encode attributes' option.


Charlie
--
Charlie Garrison <***@zeta.org.au>
PO Box 141, Windsor, NSW 2756, Australia

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Errol Sayre
2008-03-31 18:42:35 UTC
Permalink
Create the form tags with a dummy action, eg. 'abc', then change it
in the html file to what you really want. It's a couple of extra
steps, but still easy to do.
This is exactly what I do... pretty much every attribute begins its
life as"asdf" :-)
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Carlton Gibson
2008-04-01 07:46:20 UTC
Permalink
Post by Errol Sayre
Post by Charlie Garrison
Create the form tags with a dummy action, eg. 'abc', then change
it in the html file to what you really want. It's a couple of
extra steps, but still easy to do.
This is exactly what I do... pretty much every attribute begins its
life as"asdf" :-)
Charlie, Errol,

Thank you for both of your replies. I am at the moment entering a
dummy value then doing a search and replace, which works very well.

My thought was just that is a shame that it is a two step process
when I already have a dialogue box in front of me that is going to
put a value exactly where I want it, but won't put the one I want.

I guess this is an 80:20 thing—with this being in the 20! I will
continue to hone my approach without worrying about it too much :-)

Thanks again, and have a wonderful day.

regards,
Carlton
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Loading...