This page describes how to preview your project in a web browser.
You can preview a project either in a new web browser window or in the Preview pane of the Aptana HTML Editor. The instructions below describe both options for previewing a project.
Previewing in a separate web browser window
To preview your project in a web browser, click the Run button in the toolbar. This launches a preview of the current web page in the Aptana editor.
By default, the current web page opens in Internet Explorer on Windows or Safari on OS X. To change which web page opens in the browser or to switch the default browser to Firefox or another browser, you can change your browser configuration. See Setting up your web browser configuration for information on changing your configuration.
To preview a project in a web browser:
Studio opens your project in a new web browser window.
Previewing in the Preview pane
You can also quickly preview a web page for an open file by clicking the preview icon at the top of the editor. This displays your page in the embedded web browser. If you need to customize preview settings, you can do so by creating a custom preview server.
The preview of the file should look something like:
Previewing your project from another computer or device
By default, Studio only serves content accessible via localhost or 127.0.0.1. If you wish to have the content available to another computer, you need to update a preference.
- Open Preferences > Studio > Web Servers > Built-in
- Switch the IP address to one of the external interfaces (not 127.0.0.1)
- Restart Studio
- Launch a preview in a separate browser window
- Copy or type in that URL to the remote device