Help Topics

Files
Subversion Support
Beanstalk Repositories
Annotations
iPad Screen Modes
Supported Source Types

Files

You can checkout files stored in Subversion repositories from the Checkout view. In alternative, you can upload files to your device using a browser (when connected to your home/work network), use iTunes File Sharing, or download the file using the Download view.

Uploading via WiFi using a browser

  1. Enable file upload in the Settings menu
  2. Type in the browser the address shown in Upload To

Deleting and renaming files

Files can be deleted with a swipe gesture or from the My Files edit mode. To rename a file, touch and hold the file name for more than one second. Files inside working copies cannot be renamed.

Subversion Support

Code Viewer 2 supports checkout, update, log (per directory) and, on the iPad, blame, log and diff. When a directory under version control is displayed in My Files, a toolbar appears from the bottom. Touch the svn options button to access the Update view, where you can update the working copy to the desired revision. Please keep in mind that shallow checkouts cannot be updated to a greater depth.

On the iPad, the blame, log and diff options can be reached from the svn options button on the top right corner after a file is loaded.


The svn options button

How can I add a repository to the address book?

The repository settings are saved automatically after a successful checkout.

How can I modify the settings without overwritting an existing repository?

The repositories are identified by name. Select a repository, modify the settings as needed and change the value of 'Name'. The repository will be saved under the new name after the checkout.

Beanstalk Repositories

The settings to checkout a Beanstalk hosted repository should be similar to the following:

Namebeanstalk-test
Hostmy_account_name.svn.beanstalkapp.com
Pathrepository_name/trunk
PortDefault
MethodHTTPS
RevisionHEAD
Checkout SubdirectoriesCHECKED
Usernamemy_beanstalk_username
Password*********
Trust Unknown CertificatesUNCHECKED
Ignore Mismatched HostnameUNCHECKED

Annotations


You can add annotations by touching a line number. To edit the annotation touch the line number or the highlighted area.

All recognized source types support annotations except HTML, XML and LaTex.

 

Annotations can be removed with a swipe gesture over the highlighted area or from the Annotations view.

iPad Screen Modes

On the left side of the toolbar you can find buttons to expand the main view (when in landscape mode) and to split the screen. When the screen is split, files are loaded in the upper view and bookmarks and annotations are disabled for the bottom view. You can double tap the bottom view title bar to switch the views (unless the bottom view is displaying differences or the version history).

Supported Source Types

Code Viewer 2 highlights: sh, bsh, csh, tcsh, zsh, ash, ps1, c, cc, cpp, cxx, m, mm, vb, vbs, bas, frm, cs, java, groovy, as, js, perl, pl, pm, py, rb, lua, php, phtml, ctp, cl, el, lisp, scm, erl, hrl, (x)htm(l), xml, xaml, plist, gsp, jsp, xib, tex, bib, ltx, dtx, sty, cls, bbx, cbx, lbx, hlsl, cg, fx, fxh, glsl, pas, dpr, dfm, bat, kix, cmd.

In addition, Code Viewer 2 is able to read PDF, iWork (.key, .numbers and .pages) and Office (.doc, .xls and .ppt) documents. iWork '06, iWork '08 and rtfd documents must be zipped and retain both extensions to be recognized.