[ANN] CrowBar Action-Item

I just revved the CrowBar Action to add an Action-item version. This
makes it much more flexible to use in a variety of contexts. This
Action demonstrates what I believe Markup Items ought to do when they
are inserted within a run of text, but currently don’t. I look
forward to the day when it is no longer needed!

http://freewaypro.com/actions/downloads/

To use the new mode, simply insert an instance of the Action into a
run of text. Click on the Code button in the Actions palette and
enter your code. So far, this works pretty much the same as a Markup
Item.

Here’s the cool part, the part I wish that Markup Items would do
themselves:

If you place the CrowBar as the first character of a line of text,
then whatever code you have entered will be inserted into the Freeway
output BEFORE the opening tag of that line.

[CrowBar]This is some text in the same box.
output: your code here<p>This is some text in the same box.</p>

If you place the CrowBar as the last character of a line of text,
then your code will be inserted AFTER the closing tag of that line.

This is some text in the same box.[CrowBar]
<p>This is some text in the same box.</p>your code here

If your instance of CrowBar is the only character on the line, then
the entire line – opening and closing tags – is replaced with your
code. This means that you could have a header or paragraph, followed
by your code output, followed by another header or paragraph. This is
especially useful if your code outputs a block-level tag, like an UL.

This is a line of text.
[CrowBar]
This is another line of text.
output:
	<p>This is a line of text</p>
	your code here
	<p>This is another line of text.</p>

If your instance of CrowBar is within a run of text, or wrapped in
styled spaces, then the surrounding tag is not removed or moved. The
code is rendered right where the CrowBar action is in the run of text.

This is some text [CrowBar] in one line.
output: <p>This is some text your code here in one line.</p>

Please give it a try, and let me know if you encounter any issues.

Walter


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options