Hi there. I wrote a simple VBScript Editor in C#, here is a summary of it:
It is a Multiple-Document Interface application, the main menu is merged with a non-visible MenuStrip on the Document form.
Syntax coloring and letter casing is done live, based on the lines affected by the change in the text. The keywords for each color are stored in a regular expression.
Line numbers and column ruler are achieved by RichTextBoxes moved on separate panels. Line and column markers are updated according to the caret's position.
The data for the multiple undo and redo features is stored in Stacks.
Printing is available using the RichTextBoxPrintCtrl from Microsoft.
The tool windows, 'Find\Replace' and 'Jump to line' are always owned by the current active Document.
Here is the code for the Document form:
No comments:
Post a Comment