Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 2004

Just Say No to Notepad

Alternative Windows scripting editors
RSS
Subscribe to Windows IT Pro | See More Windows 2000 Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

When it comes to writing scripts, most administrators fall back on their tried-and-true companion: Microsoft Notepad. Although handy and free, there's no doubt that Notepad is a bare-bones, no-frills text editor. For simple scripts, it can get the job done, but if you really get into scripting, you'll soon be looking for a more powerful editing tool that can make you more productive. In this article, I use specific evaluation criteria to review four scripting editors that can do exactly that: SAPIEN Technologies' PrimalScript 3.1, Helios Software Solutions' TextPad 4.7, Adersoft's VbsEdit+JsEdit 2.0, and ES-Computing's EditPlus 2.12. Table 1 compares these products' features.

Evaluation Criteria
When you're evaluating scripting editors, you should look for features that add value beyond what Notepad offers for free. First, you want to evaluate the product's general-editing features. One of the most important of these is the ability to open and edit multiple documents in an editing pane, which can provide a big productivity boost when you're working on multifile projects. You should also look for unlimited undo and redo capabilities. The ability to perform block-mode editing in addition to text-mode editing can be another handy feature.

Then, you want to evaluate the product's scripting-specific features, such as its support for a variety of scripting languages. In addition, you'll want to determine whether the editor offers templates for common coding constructs (e.g., For Next loops, object creation). Features such as color-coded syntax and the ability to match braces ({ }) are helpful. Another helpful feature is support for code completion along the lines of Microsoft Visual Studio's (VS's) IntelliSense, in which the editor can interactively display a drop-down box showing an object's methods and properties.

PrimalScript
PrimalScript installed effortlessly in under a minute. When PrimalScript first opens, you're faced with an empty development environment in the right portion of the screen and a collection of eight tabbed tool windows, each of which is called a Nexus, on the left side. These eight windows provide an array of code-editing features:

  • The Workspace Nexus lists the PrimalScript workspaces (i.e., groups of related source files).
  • The Sourcebrowser Nexus provides a hierarchical class view of your project.
  • The File Nexus provides a Windows Explorer­type view of the file system.
  • The Info Nexus displays the PrimalScript Help file as well as a collection of
    Web resources, including search and scripting-related sites.
  • The Tools Nexus contains links to a number of tools (e.g., regedit). You can also include links to your own tools, such as your existing scripts, or to third-party tools (e.g., Sysinternals' PsTools). You add your own tools by dragging them from Windows Explorer onto the Tools Nexus, which creates shortcuts to them in that Nexus.
  • The Snippets Nexus provides a prebuilt library of code snippets to which you can add your own favorite code snippets. As Figure 1 shows, the snippets are organized by language.
  • The HTML Nexus displays a hierarchical view of the tags in HTML source files.
  • The Type Library Browser lets you explore the properties and methods of COM object libraries. (Although PrimalScript calls the eighth tabbed window a browser, it is also one of the Nexuses.)

PrimalScript provides all the general-editing features you would expect in a modern graphical editor. For example, you can open and edit multiple documents in the edit pane. To display the open documents' names, PrimalScript uses the same type of tabbed window interface that Visual Studio .NET offers. Other editing features include unlimited undo and redo, support for recording and running macros, and a spell-checker. PrimalScript also provides several additional niceties, including line numbering, bookmarks, and hexadecimal display mode.

PrimalScript is a good editor, but its scripting support is where the product really shines. You have to work with PrimalScript for only a few minutes to realize that it's very focused on administrative scripting. PrimalScript supports virtually all of today's popular scripting languages, including VBScript, JScript, Perl, JavaScript, PHP (originally derived from Personal Home Page Tools but now standing for PHP: Hypertext Preprocessor), and Restructured Extended Executor (REXX). In addition, it supports Windows Script Host (WSH), some markup languages (e.g., HTML, XML), and several programming languages (e.g., C, C++, C#, Java, Visual Basic .NET). PrimalScript provides color-coded syntax for all these languages and checks for matching braces in languages that use them (e.g., JScript, Java, JavaScript, C++, C#). One of the coolest features is its ability to provide IntelliSense-style prompting for late-bond objects instantiated with VBScript's CreateObject function.

PrimalScript offers a variety of professional development features, including integration with Microsoft Source Code Control (SCC) API­compliant source-control systems, such as Microsoft Visual SourceSafe (VSS). Another handy feature is the built-in WMI Script Wizard, which provides the same type of functionality as the Microsoft Scriptomatic utility.

PrimalScript even lets you debug scripts by enabling its Just-In-Time debugging option. However, I found that to get Just-In-Time debugging to work, I needed to manually set up the Microsoft Script Debugger.

TextPad
Although PrimalScript is built with a distinct emphasis on scripting, that's not the case with TextPad. TextPad is more of a general-purpose editor that happens to be well adapted to scripting.

TextPad's installation was simple and painless, taking well less than a minute. By default, TextPad opens up to a blank edit pane. TextPad's editing environment is similar to PrimalScript's environment in that TextPad lets you simultaneously open and edit multiple documents in the edit pane. However, instead of putting the documents' names in tabs above the edit pane, TextPad lists them in a pane to the left of the edit pane, as Figure 2 shows.

I found TextPad's general-editing capabilities to be slightly more powerful than those in PrimalScript. Like PrimalScript, TextPad offers unlimited undo and redo, a spell-checker, support for recording and running macros, line numbering, and bookmarks. But unlike PrimalScript, TextPad also provides a handy block-mode editing feature that lets you select, cut, and paste columns of text. Some other nice features in TextPad are the ability to display rendered HTML source code in a Web browser and the ability to launch a command window and Windows Explorer from options off the editor's Tools menu.

Although TextPad's general-editing capabilities are strong, its scripting-specific features are nowhere near as extensive as those offered by PrimalScript. TextPad supports color-coded syntax for C, C++, Java, and HTML but not for the scripting languages, such as VBScript and Perl, unless you add your own syntax files. TextPad supports the ability to match braces, which is handy for languages such as Java, JavaScript, C#, and C++. However, it lacks the advanced features found in PrimalScript, such as IntelliSense-style prompting, an integrated snippets library, code templates, and source-control
integration.

VbsEdit+JsEdit
Like PrimalScript, VbsEdit+JsEdit is designed with a distinct emphasis on scripting. However, VbsEdit+JsEdit is significantly more limited than PrimalScript. Unlike the other editors reviewed here, which support many languages, VbsEdit+JsEdit is designed to edit only VBScript and JScript files.

VbsEdit+JsEdit is a lightweight product that consists of two separate modules: VbsEdit and JsEdit. I installed VbsEdit, which took just a few seconds. Figure 3 shows VbsEdit's GUI.

VbsEdit's general-editing capabilities are similar to those in Notepad, so if you're familiar with Notepad, you'd be able to starting using VbsEdit immediately. Unfortunately, you can edit only one document at a time; to edit multiple documents, you must start multiple instances of VbsEdit. VbsEdit lets you copy text and provides unlimited undo and redo capability. Beyond the basic editing capabilities, VbsEdit offers line numbering and a white-space display, which replaces white space (i.e., blank spaces) on the screen with viewable characters. You can't set bookmarks or perform block-mode editing.

Although VbsEdit is a basic editor, it offers several scripting-related features that can make you a more productive VBScript developer. For example, VbsEdit displays VBScript files with color-coded syntax. Like PrimalScript, VbsEdit also offers IntelliSense-style support for COM objects. And VbsEdit offers a Windows Management Instrumentation (WMI) prompter that works a bit like Scriptomatic by inserting WMI declarations and property assignments into the current document. Another nice feature is debugging support. VbsEdit supports debugging using Microsoft Script Debugger, and its integrated debugging was a bit easier to work with than PrimalScript's debugger. An option on the Help menu let me seamlessly download the Microsoft Script Debugger.

I ran into a couple of problems when using VbsEdit. One minor problem was that the breakpoints set on one script remained in place even when I exited that script and opened a new one. Another problem occurred with VbsEdit's limited online Help files. The Search option on the Help menu unexpectedly downloaded Microsoft scripting documentation. The Help menu's other main options let you either search the Web with your browser's default search option or search a particular Web site.

   Previous  [1]  2  Next 


Reader Comments
I stumbled across PrimalScript a couple of years ago and I thought it was wonderful. I used it for all my admin scripting and have never thought about using anything else. after

pdill3 September 02, 2004 (Article Rating: )


PrimalScript is my scripting editor of choice.

Bim September 08, 2004 (Article Rating: )


I'm curious why UltraEdit wasn't included in the review. Although I've never used any of these, UE is my editor of choice and in my experience has all the features listed in the above projects with the exception of IntelliSense.

REOScotte September 10, 2004 (Article Rating: )


PrimalScript supports block selection. Just hold the ALT key while clicking and dragging to select.

AlexRiedel September 15, 2004 (Article Rating: )


Also missing was Microsoft Script Editor, which comes free with Microsoft Office! It's like Primal Script lite, with color coding and IntelliSense. The online documentation isn't great, but the price sure is right!

Schell October 01, 2004 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 24, 2008

An often irreverent look at some of the week's other news, including a Vista Capable dismissal request, Zune price reductions, Morrow musings, Novell and Microsoft sitting in a tree ... two years later, Yahoo!, IE 6 on Windows Mobile, and so much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Have New Features Made Exchange Server Backups Unnecessary?

Cluster continuous replication and Volume Shadow Copy Service might have made backups unnecessary in Exchange 2007, but will admins feel comfortable without a dedicated backup solution in place? ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Power Up! With Virtualization Online Conference

Don't Miss Windows Server 2008 Virtual Event

Successful SharePoint 2007 Deployment and Administration – Truly Centralizing Your SharePoint Back-End Management

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing