Editor Window

The code editor window appears below the main JZoneGamer window. Its caption bar contains the file name of the current Treescript source file. If this file is not a member of the current project, the full path name is displayed. Below the caption bar is a row of tabs. Each tab contains a file name (minus the extension, which is usually “.ts”). At the right end of the row of tabs are 2 small buttons: a left arrow and a right arrow. Clicking on these buttons scrolls the row of tabs horizontally (if all tabs can be displayed, these buttons are hidden). Below the row of tabs is the contents of the file (usually a source code file) corresponding to the currently selected tab.

 

The leftmost tab may or may not consist of the text: “shell.” (Under the View menu is a command to show/hide the shell.) If this tab is selected, the portion of the code editor below the row of tabs corresponds to the Treescript version of the shell window in Python. The shell allows the user to enter Treescript expressions and display the result of evaluating those expressions. When the user scrolls the row of tabs horizontally, the shell tab always remains onscreen as the leftmost tab.

 

Keyboard Shortcuts

Most commonly-used editor commands have keyboard shortcuts, which are entered by holding down the Ctrl key, and while doing that, pressing one or more letter keys. More shortcuts can be entered by holding down both the Shift and Ctrl keys, and while doing that, pressing a single letter key. When typing the last letter key in a series of one or more letters (while holding down the Ctrl key, or both the Shift and Ctrl keys), it does not matter if that letter key is released before or after releasing the Ctrl and/or Shift keys.