Viewing Changes to HTML Source  
 

OmniWeb's source editor has a rather unique feature: as you edit an HTML page, you can view your changed document in the browser as if it had come from the server. Your modified page is treated just as if it had been downloaded from the remote site -- inline images, relative links, and forms will still work. You can use this to try out modifications to one of your pages before saving it. Or just to look at a remote page differently. If the page's author used a hard-to-read color, or a tiny font, you can just edit the page and make it easier to read. Or if you think Apple's home page would be better with your name in 36-point type across the top, just put it there and see how it looks.

To view edited source in a browser window, choose Redisplay in Browser (⇧⌘V) from the Browser menu, or click the Redisplay button on the source window toolbar.

Saving Changes to HTML Source

OmniWeb offers two ways to save HTML that you've edited: you can save it to disk, or you can send it back to the server whence it came. The latter isn't always possible, as it depends on whether the server allows it. For FTP servers, you must be logged in as a user who has write permission to the file. For HTTP servers, you need to be authorized to use the HTTP PUT command.

To save the source you're editing to a locally mounted disk (that is, any disk you can browse to in the Finder), click the Save button in the source window toolbar or choose the Save or Save As commands from the File menu.

To save the source you're editing back to the server it came from, click the Store button in the source window toolbar.

Also, OmniWeb can be configured to recognize when you're editing source on your own web site. If the web pages your server uses are stored on your hard disk (or another volume which you can access in the Finder), configure the Local HTTP Server settings in Inställningar för filhämtning. OmniWeb will then recognize when pages fetched via HTTP came from this server, and automatically save them to the right place when you use the Save command.

Närliggande ämnen
Opening the HTML Source Editor
Using the HTML Source Editor
Customizing the Source Editor Toolbar

Innehåll: Redigera HTML-källkod
Innehållsförteckning