[Pro] edit code

When I am in FWpro how can I see within FWP the code of the whole page, edit it and save the changes ?


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

That’s called Dreamweaver… :slight_smile:


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

… Sorry, couldn’t resist :slight_smile:

You could try this: http://www.freewayactions.com/product.php?id=015


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

You can’t. Freeway Pro has no page code to edit.

FWP generates page code based on the conditions you set up within your
document. The best you can hope to do is affect how FWP writes the output
code for your page.

On a practical level, start by looking at the code that is output and
tracing that back to what you are doing in your document. You can
absolutely work out how to make FWP tailor the code to your liking.


Ernie Simpson

On Sat, Jun 1, 2013 at 9:52 AM, Artivideo email@hidden wrote:

When I am in FWpro how can I see within FWP the code of the whole page,
edit it and save the changes ?


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


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

Than how can I solve this ?

http://www.freewaytalk.net/thread/view/133090


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

I need to dig into the code or not ?

On 1 Jun 2013, 3:56 pm, Artivideo wrote:

Than how can I solve this ?

http://www.freewaytalk.net/thread/view/133090


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

I am fairly new to Freeway and, having received my initial web authorship training in Unix MicroEmacs (a severe web mistress did not allow us to launch Windows until we had written the page), I like to see the code (nice clean HTML5 being the main reason I bought Freeway). I can thoroughly recommend BBEdit and use it constantly to see, and to edit, the excellent Freeway output.


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

If you set BBEdit (or its free little brother TextWrangler) as one of your “browsers” in the File / Preview in Browser / Browser Setup dialog, you will be able to choose your text editor as one of the many browsers you preview your Freeway code in. I use this all the time, particularly while developing an Action. It gives me much faster feedback than Preview in Browser, Swear at Safari devs for moving the damed View / View Source from where muscle memory demands that it be, Develop / Show Page Source, Curse Web Inspector for showing me the JavaScript console instead of the page source, Curse Web Inspector for showing me the damned DOM-rendered view rather than the raw source code, View Source Finally routine.

Remember that editing Freeway’s output after it’s been published is a quick trip to The Land Of Cursing, when it cheerfully marks your changes as “damage” and overrides them the next time you publish or preview.

Walter

On Jun 2, 2013, at 10:58 AM, John Whittaker wrote:

I am fairly new to Freeway and, having received my initial web authorship training in Unix MicroEmacs (a severe web mistress did not allow us to launch Windows until we had written the page), I like to see the code (nice clean HTML5 being the main reason I bought Freeway). I can thoroughly recommend BBEdit and use it constantly to see, and to edit, the excellent Freeway output.


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


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

How do you get the FW output ?

On 2 Jun 2013, 2:58 pm, John Whittaker wrote:

I am fairly new to Freeway and, having received my initial web authorship training in Unix MicroEmacs (a severe web mistress did not allow us to launch Windows until we had written the page), I like to see the code (nice clean HTML5 being the main reason I bought Freeway). I can thoroughly recommend BBEdit and use it constantly to see, and to edit, the excellent Freeway output.


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

  1. Set up BBEdit / TextWrangler / TextMate / SublimeEdit / Coda / Emacs / vim as one of your browsers. Use the File / Preview in Browser / Browser Setup dialog.
  2. In Freeway, move to the page where you want to view the source code.
  3. Choose File / Preview in Browser / [your editor here]

Remember ALWAYS – this is a Read Only view. Any changes you make here are damage, and Freeway will “correct” them when you next publish the site.

Freeway does not read or understand HTML at all. It maintains an object model of the site in its own document format. When you publish, it generates HTML. This is precisely the same, semantically, as pasting some French into Google translate and setting it to output German. It’s a one-way, context-free process.

Freeway does not maintain an HTML DOM in memory and consult it for changes when you move something from one place to another on the screen. All it knows is that you did something to make the page “dirty”. The next time you publish, Freeway re-generates the entire HTML page – zeroes it out and writes it over entirely from scratch.

So how do you change the output code and have it stick? You use one of the many “Extended” methods to inject your added code into the page, or to modify Freeway’s model (thus altering the output at the moment that it is generated, not after the fact). When you make changes within Freeway, they become part of Freeway’s model of the site, and thus do not count as damage after the fact.

Look through the Freeway manual for any mention of Markup, Extend or Extended. There are very many of these. Get to know them.

Finally, Actions are your friend, and I think it is worthwhile for every Freeway user who wants to graduate beyond drag-and-drop to learn as much about how to write them as they can stand. They can take your workflow from something that requires a lot of thought and individual effort into something that is nearly automatic.

Walter

On Jun 2, 2013, at 12:48 PM, Artivideo wrote:

How do you get the FW output ?

On 2 Jun 2013, 2:58 pm, John Whittaker wrote:

I am fairly new to Freeway and, having received my initial web authorship training in Unix MicroEmacs (a severe web mistress did not allow us to launch Windows until we had written the page), I like to see the code (nice clean HTML5 being the main reason I bought Freeway). I can thoroughly recommend BBEdit and use it constantly to see, and to edit, the excellent Freeway output.


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


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