Source Editor

Topic updated 21-6-2007

The Source Editor is an important part of GenWise Studio, serving two purposes:

Preview of source code that will be generated from a project item.
Adding custom code to project items using User Codeblocks.

 

There are two tool windows providing navigation functions that accompany the Source Editor:

The Document Outline
The Codeblock Tree.

 

SourceEditor

 

The Source Editor has a lot of intelligent features as one might expect from a contemporary source editor. Among the highlights are the following:

Support for different languages with appropriate syntax coloring schemes
Code completion
Collapsing code according to the source structure
Search and replace
Find in all sources
Window split (editing two different parts of the source at the same time)
Bookmarks
Marking changed and saved lines with two different colors
Code Snippets
Macro Support
Shortcut manager

 

Relation to physical source files

The code that you work on in the Source Editor does not live in a separate file. It is part of the XML-based project file along with all your other project items. However, the code that you see in the Source Editor is exactly as it will be generated when the project is built. Just keep in mind that you are not directly seeing and editing a source file, but the definition of one in the GenWise project.