Internal Source Viewer
Return to Introduction  Previous page  Next page
By default, an internal source code viewer is used to display source code. If you prefer you can change this in the Setup so that an external editor is used. See the Setup Options page for details.

The internal source viewer makes use of the same font and colouring that the VO source editor uses. Once again you can change this in Setup if you prefer a different font, or no colouring. Details of the entity are displayed in the status bar.



You can right click on an entity name when it is used in the source and, if the entity is present within the current export file, its name will be added to the standard context menu. This is similar to the feature in the VO source code editor.



The "Always on top" option on the context menu lets you force the source viewer window to stay on top of all other windows, even those of other applications. This can be useful when you want to switch back to VO, but keep the source handy for reference.

The Find option here works within the current source viewer window, and includes support for regular expressions.



The Copy option allows you to take source code and place it into another application. If the destination of the paste is a source editor, such as VO's, the plain text will be sent across. If the destination is an editor that supports rich text, such as WordPad or Word, the fully coloured text is passed to the destination.

You can open multiple entities within the source viewer by either selecting multiple entities in the listview or or choosing "View all source in module" from the explorer context menu. When you have multiple entities loaded you can use the "Go to" option to move directly to a specific entity and line number within that entity.



You can place anchor points when viewing source code (Ctrl-D), and then jump directly to the previous (Ctrl-E) and next (Ctrl-N) anchors. Anchors only last while the window is open.

The Print option gives you a number of formatting options for the output. You can select the printer, paper orientation, font size and the number of columns of text. You can choose to print a border around the text and a line between the columns. Line numbers can also be printed. You can also include text to appear at the top and bottom of the page. Entity separator lines are printed between the entities.



The Export option allows you to write out the contents of the source viewer as PRG, RTF or HTML. A PRG export results in a plain source code file; a RTF export will be formatted as a Rich Text document (e.g. for WordPad or MS Word) - any colour syntax formatting is retained; a HTML export produces a HTML page complete with colour syntax formatting. The HTML output options can be configured in the Setup Window, on the HTML tab. A sample HTML page is shown in the next diagram.




© Piko Computing Consultants, 1998-2002