Adding Line Comments in WebEdit.NET
Saturday, April 2, 2005
A feature long overdue in WebEdit.NET is adding/removing comments on multiple lines. It's been added now, but it requires the proper language configuration (syntax providers and syntax parsers are queried for the appropriate strings). If some a language lacks these helper objects, or isn't configured at all, you can still prefix lines with a textual command. Here's how to do it for DOS batch files, of all things:
code:WebEditApp.EditManager.ActiveRichEditor.AddLineComments("REM ") code:WebEditApp.EditManager.ActiveRichEditor.RemoveLineComments("REM ")
There are a few other areas I've worked on recently:
- Drag-and-drop in WebEdit.NET: you can drag files from the shell, and if you drop any file, URL, or custom storage thingy to the document or the tokens window, there is an option to insert the contents instead of the link. It's an interesting new way of reusing the extensible storage mechanism.
- Drag-and-drop in WebEdit.NET, second time: dropping text to an empty work area opens a new document with the text pasted in. Text can also be dragged right from the editor to the toolbar or the project window.
- Projects in WebEdit.NET: items can be sorted or arbitrarily ordered. There is a list of recently used projects.
- The .NET Console C# interpreter: there is support for char and verbatim string literals, escapes, nested calls, and even indexers kind of work now. If some part of an expression throws an exception, returns null or is a void member, error messages are more detailed.